RicoSuter/NSwag
在 GitHub 查看OperationSecurityScopeProcessor looks at Roles but not Policy in AuthorizeAttribute
Open
#1,674 建立於 2018年10月18日
help wantedproject: NSwag.SwaggerGenerationtype: enhancement
倉庫指標
- Star
- (6,291 star)
- PR 合併指標
- (30 天內沒有已合併 PR)
描述
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?