RicoSuter/NSwag

OperationSecurityScopeProcessor looks at Roles but not Policy in AuthorizeAttribute

Open

#1 674 ouverte le 18 oct. 2018

Voir sur GitHub
 (1 commentaire) (0 réactions) (0 assignés)C# (1 189 forks)batch import
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?

Guide contributeur