RicoSuter/NSwag
Voir sur GitHubOperationSecurityScopeProcessor looks at Roles but not Policy in AuthorizeAttribute
Open
#1 674 ouverte le 18 oct. 2018
help wantedproject: NSwag.SwaggerGenerationtype: enhancement
Métriques du dépôt
- Stars
- (6 291 stars)
- Métriques de merge PR
- (Aucune PR mergée en 30 j)
Description
OperationSecurityScopeProcessor looks at Roles of an AuthorizeAttribute but ignores it if there are no roles given. It does not work if the AuthorizeAttribute has a Policy property but no Roles.
How does this work with https://docs.microsoft.com/en-us/aspnet/core/security/authorization/policies?view=aspnetcore-2.1?