Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add spring security authentication to swagger(2.4.0)?? #1801

Closed
pranotiB opened this issue May 4, 2017 · 4 comments
Closed

How to add spring security authentication to swagger(2.4.0)?? #1801

pranotiB opened this issue May 4, 2017 · 4 comments
Labels
Milestone

Comments

@pranotiB
Copy link

pranotiB commented May 4, 2017

I have done spring security project and I have added swagger in it. When spring security is disabled everything works fine on swagger url. But when I enable the spring security, the swagger url is no more accessible. How can I access swagger with spring security? I want spring security active on swagger too.. Is it possible?

@pranotiB pranotiB changed the title How to add spring security authentication to swagger(2.0) How to add spring security authentication to swagger(2.0)?? May 4, 2017
@pranotiB pranotiB changed the title How to add spring security authentication to swagger(2.0)?? How to add spring security authentication to swagger(2.4.0)?? May 5, 2017
@pranotiB pranotiB closed this as completed May 5, 2017
@pranotiB pranotiB reopened this May 12, 2017
@pranotiB
Copy link
Author

Does swagger work with spring security ?? How can I pass my JWT token to the web services in swagger..

@ris58h
Copy link

ris58h commented May 14, 2017

@pranotiB
Just ignore some paths in your spring security configuration:
http://stackoverflow.com/a/37683455

@dilipkrish
Copy link
Member

@pranotiB please upgrade to at least 2.6.1. 2.7.0 will be released shortly

@kushsharma1001
Copy link

Hi, I think question was : How can we enable username and password based security on swagger-ui.html?
I would like to know the same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants