package fr.sle.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;

/**
 * @author slemoine
 */
@Configuration
public class SamlSecurityConfig extends WebSecurityConfigurerAdapter {

    @Override
    protected void configure(HttpSecurity http) throws Exception {

    }
}
@@ -17,16 +17,68 @@
 onfig;%0A%0A
+import org.springframework.context.annotation.Bean;%0A
 import o
@@ -317,209 +317,1291 @@
 er;%0A
-%0A/**%0A * @author slemoine%0A */%0A@Configuration%0Apublic class SamlSecurityConfig extends WebSecurityConfigurerAdapter %7B%0A%0A    @Override%0A    protected void configure(HttpSecurity http) throws Exception %7B%0A%0A    %7D
+import org.springframework.security.saml.SAMLEntryPoint;%0Aimport org.springframework.security.saml.websso.WebSSOProfileOptions;%0Aimport org.springframework.security.web.FilterChainProxy;%0Aimport org.springframework.security.web.SecurityFilterChain;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0A%0A/**%0A * @author slemoine%0A */%0A@Configuration%0Apublic class SamlSecurityConfig extends WebSecurityConfigurerAdapter %7B%0A%0A    @Bean%0A    public WebSSOProfileOptions defaultWebSSOProfileOptions() %7B%0A        WebSSOProfileOptions webSSOProfileOptions = new WebSSOProfileOptions();%0A        webSSOProfileOptions.setIncludeScoping(false);%0A        return webSSOProfileOptions;%0A    %7D%0A%0A    @Bean%0A    public SAMLEntryPoint samlEntryPoint() %7B%0A        SAMLEntryPoint samlEntryPoint = new SAMLEntryPoint();%0A        samlEntryPoint.setDefaultProfileOptions(defaultWebSSOProfileOptions());%0A        return samlEntryPoint;%0A    %7D%0A%0A    @Bean%0A    public FilterChainProxy samlFilter() throws Exception %7B%0A        List%3CSecurityFilterChain%3E chains = new ArrayList%3C%3E();%0A        return new FilterChainProxy(chains);%0A    %7D%0A%0A    @Override%0A    protected void configure(HttpSecurity http) throws Exception %7B%0A%0A        http%0A                .exceptionHandling()%0A                .authenticationEntryPoint(samlEntryPoint());%0A    %7D%0A
 %0A%7D

Add saml entrypoint