Package io.quarkus.oidc.runtime
Class DefaultTokenStateManager
java.lang.Object
io.quarkus.oidc.runtime.DefaultTokenStateManager
- All Implemented Interfaces:
TokenStateManager
@ApplicationScoped
public class DefaultTokenStateManager
extends Object
implements TokenStateManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.smallrye.mutiny.Uni<String>createTokenState(io.vertx.ext.web.RoutingContext routingContext, OidcTenantConfig oidcConfig, AuthorizationCodeTokens tokens, OidcRequestContext<String> requestContext) Convert the authorization code flow tokens into a token state.io.smallrye.mutiny.Uni<Void>deleteTokens(io.vertx.ext.web.RoutingContext routingContext, OidcTenantConfig oidcConfig, String tokenState, OidcRequestContext<Void> requestContext) Delete the token state.io.smallrye.mutiny.Uni<AuthorizationCodeTokens>getTokens(io.vertx.ext.web.RoutingContext routingContext, OidcTenantConfig oidcConfig, String tokenState, OidcRequestContext<AuthorizationCodeTokens> requestContext) Convert the token state into the authorization code flow tokens.
-
Constructor Details
-
DefaultTokenStateManager
public DefaultTokenStateManager()
-
-
Method Details
-
createTokenState
public io.smallrye.mutiny.Uni<String> createTokenState(io.vertx.ext.web.RoutingContext routingContext, OidcTenantConfig oidcConfig, AuthorizationCodeTokens tokens, OidcRequestContext<String> requestContext) Description copied from interface:TokenStateManagerConvert the authorization code flow tokens into a token state.- Specified by:
createTokenStatein interfaceTokenStateManager- Parameters:
routingContext- the request contextoidcConfig- the tenant configurationtokens- the authorization code flow tokensrequestContext- the request context- Returns:
- the token state
-
getTokens
public io.smallrye.mutiny.Uni<AuthorizationCodeTokens> getTokens(io.vertx.ext.web.RoutingContext routingContext, OidcTenantConfig oidcConfig, String tokenState, OidcRequestContext<AuthorizationCodeTokens> requestContext) Description copied from interface:TokenStateManagerConvert the token state into the authorization code flow tokens.- Specified by:
getTokensin interfaceTokenStateManager- Parameters:
routingContext- the request contextoidcConfig- the tenant configurationtokenState- the token staterequestContext- the request context- Returns:
- the authorization code flow tokens
-
deleteTokens
public io.smallrye.mutiny.Uni<Void> deleteTokens(io.vertx.ext.web.RoutingContext routingContext, OidcTenantConfig oidcConfig, String tokenState, OidcRequestContext<Void> requestContext) Description copied from interface:TokenStateManagerDelete the token state.- Specified by:
deleteTokensin interfaceTokenStateManager- Parameters:
routingContext- the request contextoidcConfig- the tenant configurationtokenState- the token state
-