Class TokenRelayTokenSupplier
java.lang.Object
org.springframework.grpc.client.interceptor.security.TokenRelayTokenSupplier
- All Implemented Interfaces:
TokenSupplier
A supplier that provides OAuth2 access tokens using the client credentials grant type.
This supplier retrieves the client registration from the provided repository and uses
it to request an access token from the authorization server.
- Author:
- Dave Syer
-
Constructor Summary
ConstructorsConstructorDescriptionTokenRelayTokenSupplier(org.springframework.security.oauth2.client.OAuth2AuthorizedClientManager manager) -
Method Summary
-
Constructor Details
-
TokenRelayTokenSupplier
public TokenRelayTokenSupplier(org.springframework.security.oauth2.client.OAuth2AuthorizedClientManager manager)
-
-
Method Details
-
token
- Specified by:
tokenin interfaceTokenSupplier
-