We implemented swagger for our framework solution. The swagger displayed all the APIs correctly on the Swagger UI.
Later, we implemented token authentication , post this Swagger UI is not displaying the APIs on the Swagger UI.
We want Swagger UI to still display the APIs even when authentication is enabled. Can this be done? Please let me know.
Thanks!

Jignesh KumarRank #91 · 22.9K reputationPosted Mar 28, 2023, 2:04 AM EDT
Please try below,
https://www.c-sharpcorner.com/article/authentication-authorization-using-net-core-web-api-using-jwt-token-and/
https://code-maze.com/swagger-authorization-aspnet-core/
Amit MohantyRank #112 · 20K reputationPosted Mar 28, 2023, 2:14 AM EDT
Check the below links.
https://stackoverflow.com/questions/43447688/setting-up-swagger-asp-net-core-using-the-authorization-headers-bearer
https://www.infoworld.com/article/3650668/implement-authorization-for-swagger-in-aspnet-core-6.html
https://dev.to/eduardstefanescu/aspnet-core-swagger-documentation-with-bearer-authentication-40l6
https://medium.com/nerd-for-tech/authentication-and-authorization-in-net-core-web-api-using-jwt-token-and-swagger-ui-cc8d05aef03c
Vishal YelveRank #178 · 13.6K reputationPosted Mar 28, 2023, 12:54 PM EDT
Hi,
Do refer below links
https://www.google.com/amp/s/www.infoworld.com/article/3650668/implement-authorization-for-swagger-in-aspnet-core-6.amp.html
https://www.google.com/amp/s/code-maze.com/swagger-authorization-aspnet-core/amp/