mirror of
https://github.com/bitwarden/server.git
synced 2025-07-01 08:02:49 -05:00
bearer2 no longer supported
This commit is contained in:
@ -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");
|
||||
|
Reference in New Issue
Block a user