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:
parent
be5f388fa1
commit
9fe28419a1
@ -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' ">
|
||||
|
@ -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,
|
||||
|
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user