Package com.vaadin.sso.core
Class AbstractSingleSignOnProperties
java.lang.Object
com.vaadin.sso.core.AbstractSingleSignOnProperties
Definition of configuration properties for the SSO Kit starter.
- Since:
- 1.0
- Author:
- Vaadin Ltd
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated, for removal: This API element is subject to removal in a future version.Use built-in Spring Security support for OpenID Connect Back-Channel Logoutstatic final StringThe default login route.static final StringThe default logout-redirect route. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the Back-Channel Logout route.Gets the login-route property.Gets the logout-redirect route.intGets the maximum number of concurrent sessions per user.booleanDeprecated, for removal: This API element is subject to removal in a future version.to disable auto-configuration, use thespring.autoconfigure.excludepropertybooleanChecks weather Back-Channel logout is enabled.voidsetAutoConfigure(boolean autoConfigure) Deprecated, for removal: This API element is subject to removal in a future version.to disable auto-configuration, use thespring.autoconfigure.excludepropertyvoidsetBackChannelLogout(boolean backChannelLogout) Sets is Back-Channel logout is enabled.voidsetBackChannelLogoutRoute(String backChannelLogoutRoute) Sets the Back-Channel Logout route.voidsetLoginRoute(String loginRoute) Sets the login-route property.voidsetLogoutRedirectRoute(String logoutRedirectRoute) Sets the logout-redirect route.voidsetMaximumConcurrentSessions(int maximumConcurrentSessions) Sets maximum number of concurrent sessions per user.
-
Field Details
-
DEFAULT_LOGIN_ROUTE
The default login route. Unauthorized requests will be redirected to this route. If there are no views mapped to this route, Spring's default login page will be generated.- See Also:
-
DEFAULT_LOGOUT_REDIRECT_ROUTE
The default logout-redirect route. Web browsers will be redirected to this route after the logout process has completed.- See Also:
-
DEFAULT_BACKCHANNEL_LOGOUT_ROUTE
@Deprecated(since="3.1", forRemoval=true) public static final String DEFAULT_BACKCHANNEL_LOGOUT_ROUTEDeprecated, for removal: This API element is subject to removal in a future version.Use built-in Spring Security support for OpenID Connect Back-Channel LogoutThe default Back-Channel Logout route. This should be the same as in the OIDC provider's configuration to be able to accept logout notices as described by the specification. It requires a URI variable to match the client registration-id:registrationId.- See Also:
-
-
Constructor Details
-
AbstractSingleSignOnProperties
public AbstractSingleSignOnProperties()
-
-
Method Details
-
isAutoConfigure
Deprecated, for removal: This API element is subject to removal in a future version.to disable auto-configuration, use thespring.autoconfigure.excludepropertyChecks is auto-configuration of SingleSignOnConfiguration is enabled.- Returns:
- always true, see deprecation tag
-
setAutoConfigure
Deprecated, for removal: This API element is subject to removal in a future version.to disable auto-configuration, use thespring.autoconfigure.excludepropertyEnables or disables auto-configuration of SingleSignOnConfiguration.- Parameters:
autoConfigure- has no effect, see deprecation tag
-
getLoginRoute
Gets the login-route property.- Returns:
- the login-route property
-
setLoginRoute
Sets the login-route property.- Parameters:
loginRoute- the login-route property
-
getLogoutRedirectRoute
Gets the logout-redirect route.- Returns:
- the logout-redirect route
-
setLogoutRedirectRoute
Sets the logout-redirect route.- Parameters:
logoutRedirectRoute- the logout-redirect route
-
isBackChannelLogout
public boolean isBackChannelLogout()Checks weather Back-Channel logout is enabled.- Returns:
trueif Back-Channel logout is enabled,falseotherwise
-
setBackChannelLogout
public void setBackChannelLogout(boolean backChannelLogout) Sets is Back-Channel logout is enabled.- Parameters:
backChannelLogout- weather to enable or disable Back-Channel logout
-
getBackChannelLogoutRoute
Gets the Back-Channel Logout route.- Returns:
- the Back-Channel Logout route
-
setBackChannelLogoutRoute
Sets the Back-Channel Logout route.- Parameters:
backChannelLogoutRoute- the Back-Channel Logout route
-
getMaximumConcurrentSessions
public int getMaximumConcurrentSessions()Gets the maximum number of concurrent sessions per user.- Returns:
- the maximum number of concurrent sessions
-
setMaximumConcurrentSessions
public void setMaximumConcurrentSessions(int maximumConcurrentSessions) Sets maximum number of concurrent sessions per user.- Parameters:
maximumConcurrentSessions- maximum number of concurrent sessions
-