Class IdcsRoleMapperProviderBase.AppToken
java.lang.Object
io.helidon.security.providers.idcs.mapper.IdcsRoleMapperProviderBase.AppToken
- Enclosing class:
IdcsRoleMapperProviderBase
Reactive token for app access to IDCS.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetToken(RoleMapTracing tracing) Return a cached application token, requesting a new token when needed.
-
Constructor Details
-
AppToken
-
AppToken
protected AppToken(WebClient webClient, URI tokenEndpointUri, Duration tokenRefreshSkew, String clientId, String clientSecret) Create an application token cache with client credentials.- Parameters:
webClient- web client to request tokenstokenEndpointUri- token endpoint URItokenRefreshSkew- token refresh skewclientId- client IDclientSecret- client secret
-
-
Method Details
-
getToken
Return a cached application token, requesting a new token when needed.- Parameters:
tracing- role mapper tracing- Returns:
- token content
-