From e869b4df6317a4fd6d2548e02716de47aa7b120a Mon Sep 17 00:00:00 2001 From: Chad Scharf <3904944+cscharf@users.noreply.github.com> Date: Wed, 27 Jan 2021 10:53:27 -0500 Subject: [PATCH] Add external amr to auth method claims accepted (#1112) --- src/Events/Startup.cs | 2 +- src/Notifications/Startup.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Events/Startup.cs b/src/Events/Startup.cs index 8f877fa05b..7ddc299596 100644 --- a/src/Events/Startup.cs +++ b/src/Events/Startup.cs @@ -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"); }); }); diff --git a/src/Notifications/Startup.cs b/src/Notifications/Startup.cs index aafc8f82cd..c1c7f9d7fd 100644 --- a/src/Notifications/Startup.cs +++ b/src/Notifications/Startup.cs @@ -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 =>