public static class OidcTenantConfig.Authentication extends Object
| Modifier and Type | Field and Description |
|---|---|
Optional<String> |
cookieDomain
Cookie domain parameter value which, if set, will be used for the session, state and post logout cookies.
|
Optional<String> |
cookiePath
Cookie path parameter value which, if set, will be used for the session, state and post logout cookies.
|
Map<String,String> |
extraParams
Additional properties which will be added as the query parameters to the authentication redirect URI.
|
boolean |
forceRedirectHttpsScheme
Force 'https' as the 'redirect_uri' parameter scheme when running behind an SSL terminating reverse proxy.
|
boolean |
javaScriptAutoRedirect
If this property is set to 'true' then a normal 302 redirect response will be returned
if the request was initiated via JavaScript API such as XMLHttpRequest or Fetch and the current user needs to be
(re)authenticated which may not be desirable for Single Page Applications since
it automatically following the redirect may not work given that OIDC authorization endpoints typically do not support
CORS.
|
Optional<String> |
redirectPath
Relative path for calculating a "redirect_uri" query parameter.
|
boolean |
removeRedirectParameters
Remove the query parameters such as 'code' and 'state' set by the OIDC server on the redirect URI
after the user has authenticated by redirecting a user to the same URI but without the query parameters.
|
boolean |
restorePathAfterRedirect
If this property is set to 'true' then the original request URI which was used before
the authentication will be restored after the user has been redirected back to the application.
|
Optional<List<String>> |
scopes
List of scopes
|
Duration |
sessionAgeExtension
Session age extension in minutes.
|
boolean |
userInfoRequired
If this property is set to 'true' then an OIDC UserInfo endpoint will be called
|
boolean |
verifyAccessToken
Both ID and access tokens are fetched from the OIDC provider as part of the authorization code flow.
|
boolean |
xhrAutoRedirect
Deprecated.
|
| Constructor and Description |
|---|
Authentication() |
@ConfigItem public Optional<String> redirectPath
@ConfigItem(defaultValue="true") public boolean restorePathAfterRedirect
@ConfigItem(defaultValue="true") public boolean removeRedirectParameters
@ConfigItem(defaultValue="false") public boolean verifyAccessToken
@ConfigItem(defaultValue="false") public boolean forceRedirectHttpsScheme
@ConfigItem public Optional<List<String>> scopes
@ConfigItem public Map<String,String> extraParams
@ConfigItem public Optional<String> cookiePath
@ConfigItem public Optional<String> cookieDomain
@ConfigItem(defaultValue="false") public boolean userInfoRequired
@ConfigItem(defaultValue="5M") public Duration sessionAgeExtension
@Deprecated @ConfigItem(defaultValue="true") public boolean xhrAutoRedirect
@ConfigItem(defaultValue="true") public boolean javaScriptAutoRedirect
public boolean isXhrAutoRedirect()
public void setXhrAutoredirect(boolean autoRedirect)
public boolean isJavaScriptAutoRedirect()
public void setJavaScriptAutoredirect(boolean autoRedirect)
public void setRedirectPath(String redirectPath)
public boolean isForceRedirectHttpsScheme()
public void setForceRedirectHttpsScheme(boolean forceRedirectHttpsScheme)
public boolean isRestorePathAfterRedirect()
public void setRestorePathAfterRedirect(boolean restorePathAfterRedirect)
public void setCookiePath(String cookiePath)
public void setCookieDomain(String cookieDomain)
public boolean isUserInfoRequired()
public void setUserInfoRequired(boolean userInfoRequired)
public boolean isRemoveRedirectParameters()
public void setRemoveRedirectParameters(boolean removeRedirectParameters)
public boolean isVerifyAccessToken()
public void setVerifyAccessToken(boolean verifyAccessToken)
public Duration getSessionAgeExtension()
public void setSessionAgeExtension(Duration sessionAgeExtension)
Copyright © 2020 JBoss by Red Hat. All rights reserved.