-
Notifications
You must be signed in to change notification settings - Fork 9k
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 authenticate with OAuth2 #3953
Comments
I am still trying to solve this issue, our springfox manual is non operational :( |
Hi @kopax! The We're planning to build out an interface for setting authorization values in the next week or so, see #2915 for details. There's also some workarounds listed there, if you can't wait 😄 the |
Closing due to inactivity. This is simply to keep our issue tracker clean - feel free to comment if there are any further thoughts or concerns, and we'll be happy to reopen this issue. |
Hi, @shockey I haven't solved the installation. How do I setup the authorization code grant ? |
Hi @kopax, sorry for letting this slip away. Calling Once you've done that, you can enable the authorization by clicking the green Hopefully this helps - if you're already doing all of this, let me know and we'll get to the bottom of what's going on. |
@shockey thanks for the link, effecitvely I haven't done that. I have installed the jar from a maven repository in a spring boot application. I dont' have any of thoose files, where should I find them in order to complete the setup ? |
Not sure what you're referring to, can you clarify? The security scheme and requirement is something you'd add to your |
Closing due to inactivity. This is simply to keep our issue tracker clean - feel free to comment if there are any further thoughts or concerns, and we'll be happy to reopen this issue. |
@shockey sorry I was unsuccessful configuring swagger-ui with my spring-security-oauth2. |
@kopax, sounds good, sorry you weren't able to get it working! when/if you pick the task back up, feel free to bump this issue or open a new one. |
I have a springboot backend secured with spring-security and spring-security-oauth2 I have springfox installed. I am using the code grant flow specified in RFC6749.
My OAuth2 client is autoapproving so there is no redirection form to validate for the user.
I have a reactjs app as a client and I want to install swagger-ui on it.
I successfully managed to display the swagger-ui. The documentation says :
The OAuth2 configuration explained in the documentation does not trigger any request to authenticate.
This is how my react page look like :
Expected Behavior
I expect the OAuth configuration to be fulfilled
Current Behavior
I have 401 Unauthorized when I test a secured endpoint and I don't see the
swagger-ui
trying to request my OAuth security endpoints.Possible Solution
No idea.
Context
redux
(login action/reducer) even If I don't see anywhere in the documentation where it says how to use it. Is there anything I a missing? Could you maybe share a more detailled example?The text was updated successfully, but these errors were encountered: