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!
Vishal YelvePosted Mar 28, 2023, 4:54 PM
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/
Amit MohantyPosted Mar 28, 2023, 6:14 AM
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
Jignesh KumarPosted Mar 28, 2023, 6:04 AM
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/