Package io.quarkus.oidc.client.spi
Interface TokenProvider
public interface TokenProvider
TokenProvider represents an OIDC client which can acquire and refresh
access tokens using the configured token grant properties.
Use it when no user participation or dynamic input is required to complete
the token grant exchange.
For example, you can use it with the client credentials, password,
JWT bearer and other similar grants, but not the authorization code flow grant.
-
Method Summary
Modifier and TypeMethodDescriptionio.smallrye.mutiny.Uni<String> Get a valid, if necessary refreshed, access token.
-
Method Details
-
getAccessToken
io.smallrye.mutiny.Uni<String> getAccessToken()Get a valid, if necessary refreshed, access token.- Returns:
- the access token
-