RicoSuter/NSwag

OperationSecurityScopeProcessor looks at Roles but not Policy in AuthorizeAttribute

Open

#1,674 建立於 2018年10月18日

在 GitHub 查看
 (1 留言) (0 反應) (0 負責人)C# (1,189 fork)batch import
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?

貢獻者指南