1
0
mirror of https://github.com/Stirling-Tools/Stirling-PDF.git synced 2024-11-23 15:21:25 +01:00

WIP: Try to add saml2 logout with defaults

This commit is contained in:
Dimitrios Kaitantzidis 2024-10-07 23:20:54 +03:00
parent f8944fd2a9
commit 7297e9e62d

View File

@ -1,5 +1,7 @@
package stirling.software.SPDF.config.security;
import static org.springframework.security.config.Customizer.withDefaults;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Bean;
@ -214,6 +216,7 @@ public class SecurityConfiguration {
.failureHandler(
new CustomSAMLAuthenticationFailureHandler());
})
.saml2Logout(withDefaults())
.addFilterBefore(
userAuthenticationFilter, Saml2WebSsoAuthenticationFilter.class);
}