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

WebClient client_credentials Question #5974

Closed
dlesnef1 opened this issue Oct 15, 2018 · 2 comments
Closed

WebClient client_credentials Question #5974

dlesnef1 opened this issue Oct 15, 2018 · 2 comments
Assignees
Labels
for: stackoverflow A question that's better suited to stackoverflow.com

Comments

@dlesnef1
Copy link

I have a question regarding the client credentials flow for OAuth 2. I will outline the question below, but a more detailed version I wrote can be found on StackOverflow (Apologies if linking to SO is not allowed).

I am trying to upgrade my Spring Security version to 5.1.0 and move from RestTemplate to WebClient. In doing so I would like to have the WebClient Bean always send my Bearer token (and refresh it if it is expired).

I have read over many documents on the 5.1 release, including numerous issues claiming to have added client_credentials but I just cannot seem to get it to work. I know I am just overlooking something right in front of me, can someone show me how to get this working? If you respond here I will update the SO, or you're welcome to yourself for future people.

@rwinch
Copy link
Member

rwinch commented Oct 16, 2018

Thanks for the question. I actually appreciate that you tried StackOverflow before you asked here since there are more people on StackOverflow that can help. So thank you for that.

Spring Security's Client Credentials support does not yet perform a refresh. See #5893

Would you be interested in submitting a PR for this? If so, can you comment on the linked issue. Also I'd be happy go guide you.

@rwinch rwinch self-assigned this Oct 16, 2018
@rwinch rwinch added the for: stackoverflow A question that's better suited to stackoverflow.com label Oct 16, 2018
@rwinch
Copy link
Member

rwinch commented Oct 16, 2018

I'm closing this since it is a duplicate of #5893

@rwinch rwinch closed this as completed Oct 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
for: stackoverflow A question that's better suited to stackoverflow.com
Projects
None yet
Development

No branches or pull requests

2 participants