springfox/springfox-demos

Questions :: Is there a way in Swagger to show the UI documentation only to internal users?

scchaitha opened this issue · 3 comments

Is there a way in Swagger to show the UI documentation only to internal users?

I mean to say are there any project or documentation for user roles and permissions using swagger annotations or spring configurations. Pls let me know that would be helpful.

You can use spring security to do that

Thanks you! it worked. I used spring security and also I used some roles that tied to authentication service. Do you have an example project that uses spring security for supporting roles?