All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.ulisesbocchio.spring.boot.security.saml.properties.LogoutProperties Maven / Gradle / Ivy

Go to download

Eases Integration between Spring Boot and spring-security-saml through properties and adapters

The newest version!
package com.github.ulisesbocchio.spring.boot.security.saml.properties;

import lombok.Data;
import org.springframework.security.saml.SAMLLogoutFilter;
import org.springframework.security.saml.SAMLLogoutProcessingFilter;

/**
 * Configuration Properties Local and Global Logout.
 *
 * @author Ulises Bocchio
 */
@Data
public class LogoutProperties {

    /**
     * Supplies the default target Url that will be used if no saved request is found in the session, or the
     * alwaysUseDefaultTargetUrl property is set to true. If not set, defaults to /. It will be treated as relative
     * to the web-app's context path, and should include the leading /. Alternatively, inclusion of a scheme name
     * (such as "http://" or "https://") as the prefix will denote a fully-qualified URL and this is also
     * supported.
     */
    private String defaultTargetUrl = "/";

    /**
     * Sets the URL used to determine if the {@link SAMLLogoutFilter} is invoked.
     */
    private String logoutUrl = "/saml/logout";

    /**
     * Sets the URL used to determine if the {@link SAMLLogoutProcessingFilter} is invoked.
     */
    private String singleLogoutUrl = "/saml/SingleLogout";

    /**
     * If true, removes the Authentication from the SecurityContext to prevent issues with concurrent requests.
     */
    private boolean clearAuthentication = true;

    /**
     * Causes the HttpSession to be invalidated when this LogoutHandler is invoked. Defaults to false.
     */
    private boolean invalidateSession = false;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy