Class OidcLogoutConfigurer
java.lang.Object
com.codename1.backend.security.SecurityConfigurer
com.codename1.backend.security.OidcLogoutConfigurer
OpenID Connect logout for a server that signs users in with
OAuth2LoginConfigurer: back-channel logout from the provider, and
sending a user who signs out here to sign out at the provider too.
http.oauth2Login(Customizer.withDefaults())
.oidcLogout(o -> o.backChannel(Customizer.withDefaults()).clientInitiated("{baseUrl}/"));
Register <baseUrl>/logout/connect/back-channel/<registrationId> as the
client's back-channel logout URI at the provider.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classWhere the provider posts logout tokens. -
Method Summary
Modifier and TypeMethodDescriptionAccepts logout tokens from the providers users sign in with.clientInitiated(String postLogoutRedirectUri) Sends a user who signed in with OpenID Connect to the provider's end-session endpoint after signing out here; seeOidcClientInitiatedLogoutSuccessHandler.setPostLogoutRedirectUri(String).voidconfigure(HttpSecurity http) Adds this part's filters; nothing by default.voidinit(HttpSecurity http) Shares what other parts need to know; nothing by default.Methods inherited from class SecurityConfigurer
disable, getBuilder
-
Method Details
-
backChannel
public OidcLogoutConfigurer backChannel(Customizer<OidcLogoutConfigurer.BackChannelLogoutConfigurer> customizer) Accepts logout tokens from the providers users sign in with. -
clientInitiated
Sends a user who signed in with OpenID Connect to the provider's end-session endpoint after signing out here; seeOidcClientInitiatedLogoutSuccessHandler.setPostLogoutRedirectUri(String).- Parameters:
postLogoutRedirectUri- where the provider sends them back, or null
-
init
Description copied from class:SecurityConfigurerShares what other parts need to know; nothing by default.- Overrides:
initin classSecurityConfigurer
-
configure
Description copied from class:SecurityConfigurerAdds this part's filters; nothing by default.- Overrides:
configurein classSecurityConfigurer
-