mirror of
https://github.com/bitwarden/server.git
synced 2025-04-06 05:28:15 -05:00
Add external amr to auth method claims accepted (#1112)
This commit is contained in:
parent
421fbffd42
commit
e869b4df63
@ -43,7 +43,7 @@ namespace Bit.Events
|
||||
config.AddPolicy("Application", policy =>
|
||||
{
|
||||
policy.RequireAuthenticatedUser();
|
||||
policy.RequireClaim(JwtClaimTypes.AuthenticationMethod, "Application");
|
||||
policy.RequireClaim(JwtClaimTypes.AuthenticationMethod, "Application", "external");
|
||||
policy.RequireClaim(JwtClaimTypes.Scope, "api");
|
||||
});
|
||||
});
|
||||
|
@ -39,7 +39,7 @@ namespace Bit.Notifications
|
||||
config.AddPolicy("Application", policy =>
|
||||
{
|
||||
policy.RequireAuthenticatedUser();
|
||||
policy.RequireClaim(JwtClaimTypes.AuthenticationMethod, "Application");
|
||||
policy.RequireClaim(JwtClaimTypes.AuthenticationMethod, "Application", "external");
|
||||
policy.RequireClaim(JwtClaimTypes.Scope, "api");
|
||||
});
|
||||
config.AddPolicy("Internal", policy =>
|
||||
|
Loading…
x
Reference in New Issue
Block a user