Start protecting the Api
This commit is contained in:
parent
070f41ac7e
commit
57adfc82a5
5 changed files with 11 additions and 4 deletions
|
|
@ -58,7 +58,7 @@ internal class Program
|
|||
{
|
||||
policy
|
||||
.RequireAuthenticatedUser()
|
||||
.RequireClaim(JwtClaimTypes.Scope, new string[] { "scope2" });
|
||||
.RequireClaim(JwtClaimTypes.Scope, new string[] { "com" });
|
||||
});
|
||||
})
|
||||
.AddCors(options =>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue