1
0
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:
Kyle Spearrin 2017-08-02 20:55:14 -04:00
parent 7ff91227a6
commit 5deccf122a

View File

@ -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");