Class AccessTokenContextRelay
java.lang.Object
org.springframework.cloud.commons.security.AccessTokenContextRelay
Convenience class for relaying an access token from the
to the
. If successful then subsequent calls to an
using the context contained here will use the same access
token. This is mostly useful for relaying calls to a resource server downstream to
other resource servers. If the access token expires there is no way to refresh it, so
expect an exception from downstream (propagating it to the caller is the best strategy,
so they can refresh it and try again).
invalid reference
SecurityContext
invalid reference
OAuth2ClientContext
invalid reference
OAuth2RestTemplate
- Author:
- Dave Syer
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
AccessTokenContextRelay
public AccessTokenContextRelay()
-