Saml2Dsl

class Saml2Dsl

A Kotlin DSL to configure HttpSecurity SAML2 login using idiomatic Kotlin code.

Author

Eleftheria Stein

Since

5.3

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
var authenticationFailureHandler: AuthenticationFailureHandler?

the AuthenticationFailureHandler used after authentication success

Link copied to clipboard
var authenticationManager: AuthenticationManager?

the AuthenticationManager to be used during SAML 2 authentication.

Link copied to clipboard
var authenticationSuccessHandler: AuthenticationSuccessHandler?

the AuthenticationSuccessHandler used after authentication success

Link copied to clipboard

the URL to send users if authentication fails

Link copied to clipboard

the login page to redirect to if authentication is required (i.e. "/login")

Link copied to clipboard

the URL to validate the credentials

Link copied to clipboard

whether to grant access to the urls for failureUrl as well as for the HttpSecurityBuilder, the loginPage and loginProcessingUrl for every user

Link copied to clipboard
var relyingPartyRegistrationRepository: RelyingPartyRegistrationRepository?

the RelyingPartyRegistrationRepository of relying parties, each party representing a service provider, SP and this host, and identity provider, IDP pair that communicate with each other.

Functions

Link copied to clipboard
fun defaultSuccessUrl(defaultSuccessUrl: String, alwaysUse: Boolean)

Specifies where users will be redirected after authenticating successfully if they have not visited a secured page prior to authenticating or alwaysUse is true.

Link copied to clipboard
fun permitAll()

Grants access to the urls for failureUrl as well as for the HttpSecurityBuilder, the loginPage and loginProcessingUrl for every user.