1
0
mirror of https://github.com/bitwarden/server.git synced 2025-05-28 06:44:50 -05:00

Fixes for identity server

This commit is contained in:
Kyle Spearrin 2017-03-09 20:30:19 -05:00
parent be5f388fa1
commit 9fe28419a1
3 changed files with 3 additions and 2 deletions

View File

@ -45,6 +45,7 @@
<PackageReference Include="Serilog.Sinks.AzureDocumentDb" Version="3.5.18" />
<PackageReference Include="IdentityServer4" Version="1.2.1" />
<PackageReference Include="IdentityServer4.AccessTokenValidation" Version="1.0.5" />
<PackageReference Include="System.Net.Http" Version="4.3.1" />
</ItemGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'net461' ">

View File

@ -10,7 +10,7 @@ namespace Bit.Api.IdentityServer
{
return new List<ApiResource>
{
new ApiResource("api", "Vault API", new string[] {
new ApiResource("api", new string[] {
ClaimTypes.AuthenticationMethod,
ClaimTypes.NameIdentifier,
ClaimTypes.Email,

View File

@ -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",