Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Restrict access to Swagger UI #7572


User avatar
0
kasem created

Hi

I noticed Hangfire UI is available only for Host admin. Can I do the same for Swagger UI?

Thanks


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

    I think you can write an aspnet core middleware. If the current url is /swagger you can make a judgment on the identity of the currently logged in user.