Base solution for your next web application
Open Closed

Authorization to view swagger #1849


User avatar
0
keithflynn created

Is there a way to use the AbpAuthorize (or some other mechanism) to protect the swagger folder? I would like only specific roles to be able to access this folder.

Thanks


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    There is no build in staff right now but this issue might help you <a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate/issues/1111">https://github.com/aspnetboilerplate/as ... ssues/1111</a>

    You need to get attributes of each operation and filter it according to current user's rights.