From 9fe28419a1096fad916063407255e1aac829185f Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Thu, 9 Mar 2017 20:30:19 -0500 Subject: [PATCH] Fixes for identity server --- src/Api/Api.csproj | 1 + src/Api/IdentityServer/ApiResources.cs | 2 +- src/Api/Startup.cs | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Api/Api.csproj b/src/Api/Api.csproj index 314739dfba..bb8e6729b1 100644 --- a/src/Api/Api.csproj +++ b/src/Api/Api.csproj @@ -45,6 +45,7 @@ + diff --git a/src/Api/IdentityServer/ApiResources.cs b/src/Api/IdentityServer/ApiResources.cs index 919e9bd37a..62efc45c7e 100644 --- a/src/Api/IdentityServer/ApiResources.cs +++ b/src/Api/IdentityServer/ApiResources.cs @@ -10,7 +10,7 @@ namespace Bit.Api.IdentityServer { return new List { - new ApiResource("api", "Vault API", new string[] { + new ApiResource("api", new string[] { ClaimTypes.AuthenticationMethod, ClaimTypes.NameIdentifier, ClaimTypes.Email, diff --git a/src/Api/Startup.cs b/src/Api/Startup.cs index f9fb92382b..607a5d5d52 100644 --- a/src/Api/Startup.cs +++ b/src/Api/Startup.cs @@ -260,7 +260,7 @@ namespace Bit.Api AllowedScopes = new string[] { "api" }, Authority = env.IsProduction() ? "https://api.bitwarden.com" : "http://localhost:4000", RequireHttpsMetadata = env.IsProduction(), - ApiName = "Vault API", + ApiName = "api", NameClaimType = ClaimTypes.Email, // Version "2" until we retire the old jwt scheme and replace it with this one. AuthenticationScheme = "Bearer2",