Package io.quarkus.oidc
Class OidcTenantConfig.TokenStateManager
- java.lang.Object
-
- io.quarkus.oidc.OidcTenantConfig.TokenStateManager
-
- Enclosing class:
- OidcTenantConfig
public static class OidcTenantConfig.TokenStateManager extends Object
Default Authorization Code token state manager configuration
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOidcTenantConfig.TokenStateManager.Strategy
-
Field Summary
Fields Modifier and Type Field Description booleanencryptionRequiredMandates that the session cookie that stores the tokens is encrypted.Optional<String>encryptionSecretSecret which will be used to encrypt the session cookie storing the tokens whenencryptionRequiredproperty is enabled.booleansplitTokensDefault TokenStateManager keeps all tokens (ID, access and refresh) returned in the authorization code grant response in a single session cookie by default.OidcTenantConfig.TokenStateManager.StrategystrategyDefault TokenStateManager strategy.
-
Constructor Summary
Constructors Constructor Description TokenStateManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<String>getEncryptionSecret()OidcTenantConfig.TokenStateManager.StrategygetStrategy()booleanisEncryptionRequired()booleanisSplitTokens()voidsetEncryptionRequired(boolean encryptionRequired)voidsetEncryptionSecret(String encryptionSecret)voidsetSplitTokens(boolean splitTokens)voidsetStrategy(OidcTenantConfig.TokenStateManager.Strategy strategy)
-
-
-
Field Detail
-
strategy
@ConfigItem(defaultValue="keep_all_tokens") public OidcTenantConfig.TokenStateManager.Strategy strategy
Default TokenStateManager strategy.
-
splitTokens
@ConfigItem(defaultValue="false") public boolean splitTokens
Default TokenStateManager keeps all tokens (ID, access and refresh) returned in the authorization code grant response in a single session cookie by default. Enable this property to minimize a session cookie size
-
encryptionRequired
@ConfigItem(defaultValue="true") public boolean encryptionRequired
Mandates that the session cookie that stores the tokens is encrypted.
-
encryptionSecret
@ConfigItem public Optional<String> encryptionSecret
Secret which will be used to encrypt the session cookie storing the tokens whenencryptionRequiredproperty is enabled.If this secret is not set, the client secret configured with either `quarkus.oidc.credentials.secret` or `quarkus.oidc.credentials.client-secret.value` will be checked. Finally, `quarkus.oidc.credentials.jwt.secret` which can be used for `client_jwt_secret` authentication will be checked. The secret will be auto-generated if it remains uninitialized after checking all of these properties.
The length of the secret which will be used to encrypt the tokens should be at least 32 characters long. Warning will be logged if the secret length is less than 16 characters.
-
-
Method Detail
-
isEncryptionRequired
public boolean isEncryptionRequired()
-
setEncryptionRequired
public void setEncryptionRequired(boolean encryptionRequired)
-
setEncryptionSecret
public void setEncryptionSecret(String encryptionSecret)
-
isSplitTokens
public boolean isSplitTokens()
-
setSplitTokens
public void setSplitTokens(boolean splitTokens)
-
getStrategy
public OidcTenantConfig.TokenStateManager.Strategy getStrategy()
-
setStrategy
public void setStrategy(OidcTenantConfig.TokenStateManager.Strategy strategy)
-
-