org.springframework.security.web.authentication.logout.LogoutHandler Java Examples
The following examples show how to use
org.springframework.security.web.authentication.logout.LogoutHandler.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: InsightsSecurityConfigurationAdapterSAML.java From Insights with Apache License 2.0 | 5 votes |
/** * used to initialize logout Handler * * @return */ @Bean @Conditional(InsightsSAMLBeanInitializationCondition.class) public SAMLLogoutFilter samlLogoutFilter() { LOG.debug(" Inside samlLogoutFilter ==== "); return new SAMLLogoutFilter(successLogoutHandler(), new LogoutHandler[] { logoutHandler() }, new LogoutHandler[] { logoutHandler() }); }
Example #2
Source File: SecurityConfiguration.java From api-layer with Eclipse Public License 2.0 | 4 votes |
private LogoutHandler logoutHandler() { return (request, response, authentication) -> authenticationService.getJwtTokenFromRequest(request) .ifPresent(x -> authenticationService.invalidateJwtToken(x, true) ); }
Example #3
Source File: FebsSecurityConfig.java From FEBS-Security with Apache License 2.0 | 4 votes |
@Bean public LogoutHandler logoutHandler(){ FebsLogoutHandler febsLogoutHandler = new FebsLogoutHandler(); febsLogoutHandler.setSessionRegistry(sessionRegistry()); return febsLogoutHandler; }
Example #4
Source File: AuthenticationHandler.java From blackduck-alert with Apache License 2.0 | 4 votes |
@Bean public SAMLLogoutFilter samlLogoutFilter() { return new SAMLLogoutFilter(successLogoutHandler(), new LogoutHandler[] { logoutHandler() }, new LogoutHandler[] { logoutHandler() }); }
Example #5
Source File: SecurityConfiguration.java From graviteeio-access-management with Apache License 2.0 | 4 votes |
@Bean public LogoutHandler cookieClearingLogoutHandler() { return new CookieClearingLogoutHandler(); }
Example #6
Source File: WebSecurityConfig.java From spring-tsers-auth with Apache License 2.0 | 4 votes |
@Bean public SAMLLogoutFilter samlLogoutFilter() { return new SAMLLogoutFilter(successLogoutHandler(), new LogoutHandler[]{logoutHandler()}, new LogoutHandler[]{logoutHandler()}); }
Example #7
Source File: SAMLConfig.java From spring-boot-security-saml-samples with MIT License | 4 votes |
@Bean public SAMLLogoutFilter samlLogoutFilter() { SAMLLogoutFilter filter = new SAMLLogoutFilter(successLogoutHandler(), new LogoutHandler[]{logoutHandler()}, new LogoutHandler[]{logoutHandler()}); filter.setFilterProcessesUrl("/saml/logout"); return filter; }
Example #8
Source File: OidcUserManagementAutoConfiguration.java From hawkbit with Eclipse Public License 1.0 | 4 votes |
/** * @return the OpenID Connect logout handler */ @Bean public LogoutHandler oidcLogoutHandler() { return new OidcLogoutHandler(); }
Example #9
Source File: SecurityAutoConfiguration.java From hawkbit with Eclipse Public License 1.0 | 4 votes |
/** * @return {@link LogoutHandler} bean */ @Bean @ConditionalOnMissingBean public LogoutHandler logoutHandler() { return new SecurityContextLogoutHandler(); }
Example #10
Source File: WebSecurityConfig.java From spring-boot-security-saml-sample with Apache License 2.0 | 4 votes |
@Bean public SAMLLogoutFilter samlLogoutFilter() { return new SAMLLogoutFilter(successLogoutHandler(), new LogoutHandler[] { logoutHandler() }, new LogoutHandler[] { logoutHandler() }); }
Example #11
Source File: FederationLogoutFilter.java From cxf-fediz with Apache License 2.0 | 4 votes |
public FederationLogoutFilter(LogoutSuccessHandler logoutSuccessHandler, LogoutHandler... handlers) { super(logoutSuccessHandler, handlers); }
Example #12
Source File: LogoutConfigurer.java From spring-boot-security-saml with MIT License | 2 votes |
/** * Handler to be invoked when local logout is selected. Overrides values set by {@link #clearAuthentication} and * {@link #invalidateSession} for local logout. * * @param handler the handler to be invoked. * @return this configurer for further customization */ public LogoutConfigurer localHandler(LogoutHandler handler) { localHandler = handler; return this; }
Example #13
Source File: LogoutConfigurer.java From spring-boot-security-saml with MIT License | 2 votes |
/** * Handler to be invoked when global logout is selected. Overrides values set by {@link #clearAuthentication} and * {@link #invalidateSession} for global logout. * * @param handler the handler to be invoked. * @return this configurer for further customization */ public LogoutConfigurer globalHandler(LogoutHandler handler) { globalHandler = handler; return this; }