This repository has been archived by the owner on Apr 5, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 244
Add support for Feign on OAuth2 protected resources #56
Labels
Comments
The other problem here is that feign config is currently all or nothing see spring-cloud-netflix/issues/288 |
@spencergibb I can't follow the #288 link |
fixed. Your gist looks good btw. Testing is a bit difficult :-) |
😊 Thanks! |
The token is refreshed based on isExpired. Cannot there be some race conditions when requests are made close to the expiration ? Some other implementations also renew the token on HTTP 401 error but this cannot be done with request interceptor obviously. |
jannikweichert
pushed a commit
to jannikweichert/spring-cloud-security
that referenced
this issue
Aug 4, 2017
In case the current context there is no token available an attempt to get one using token provider will be executed similarly to OAuth2RestTemplate does. Fixes spring-atticgh-56, fixes spring-atticgh-75
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'll be nice if we have some kind of support to include authorization on Feign requests, since I came across this issue, as asked on StackOverflow. I could fix it to my needs, thanks to @dsyer.
I can try to contribuite to this with my implementation, I just don't know how to test this with TDD 😞
Here is the implemetation on a gist
The text was updated successfully, but these errors were encountered: