Class ClientCredentialsTokenSupplier
java.lang.Object
org.springframework.grpc.client.interceptor.security.ClientCredentialsTokenSupplier
- 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
ConstructorsConstructorDescriptionClientCredentialsTokenSupplier(org.springframework.security.oauth2.client.registration.ClientRegistrationRepository repository, Supplier<String> clientId) -
Method Summary
-
Constructor Details
-
ClientCredentialsTokenSupplier
-
-
Method Details
-
token
- Specified by:
tokenin interfaceTokenSupplier
-