mirror of
https://github.com/bitwarden/server.git
synced 2025-05-28 14:54:50 -05:00
bearer2 no longer supported
This commit is contained in:
parent
7ff91227a6
commit
5deccf122a
@ -73,14 +73,14 @@ namespace Bit.Api
|
||||
{
|
||||
config.AddPolicy("Application", policy =>
|
||||
{
|
||||
policy.AddAuthenticationSchemes("Bearer2", "Bearer3");
|
||||
policy.AddAuthenticationSchemes("Bearer", "Bearer3");
|
||||
policy.RequireAuthenticatedUser();
|
||||
policy.RequireClaim(JwtClaimTypes.AuthenticationMethod, "Application");
|
||||
policy.RequireClaim(JwtClaimTypes.Scope, "api");
|
||||
});
|
||||
config.AddPolicy("Web", policy =>
|
||||
{
|
||||
policy.AddAuthenticationSchemes("Bearer2", "Bearer3");
|
||||
policy.AddAuthenticationSchemes("Bearer", "Bearer3");
|
||||
policy.RequireAuthenticatedUser();
|
||||
policy.RequireClaim(JwtClaimTypes.AuthenticationMethod, "Application");
|
||||
policy.RequireClaim(JwtClaimTypes.Scope, "api");
|
||||
|
Loading…
x
Reference in New Issue
Block a user