IdentityServer / IdentityServer4.AccessTokenValidation

IdentityServer Access Token Validation for ASP.NET Core
Apache License 2.0
544 stars 214 forks source link

AllowedScopes disappear #87

Closed Bidou44 closed 7 years ago

Bidou44 commented 7 years ago

After updating this package to the 2.0.0-rc2, I noticed that the AllowScopes property on the IdentityServerAuthenticationOption disappear (same problem with AutomaticChallenge).

How can I set these properties in this version?

brockallen commented 7 years ago

Use ASP.NET Core authorization policies. There was an issue to add a policy for this: https://github.com/IdentityServer/IdentityServer4.AccessTokenValidation/issues/76

And looks like here's the code: https://github.com/IdentityServer/IdentityServer4.AccessTokenValidation/blob/dev/src/IdentityServer4.AccessTokenValidation/AuthorizationPolicyExtensions.cs