1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-02 00:22:50 -05:00

org API clients

This commit is contained in:
Kyle Spearrin
2019-02-26 17:01:33 -05:00
parent c1c49fb67e
commit 5923b4c9bd
3 changed files with 32 additions and 1 deletions

View File

@ -94,6 +94,11 @@ namespace Bit.Api
policy.RequireAuthenticatedUser();
policy.RequireClaim(JwtClaimTypes.Scope, "api.licensing");
});
config.AddPolicy("Organization", policy =>
{
policy.RequireAuthenticatedUser();
policy.RequireClaim(JwtClaimTypes.Scope, "api.organization");
});
});
services.AddScoped<AuthenticatorTokenProvider>();