saml2Metadata
Configures a SAML 2.0 relying party metadata endpoint.
A RelyingPartyRegistrationRepository is required and must be registered with the ApplicationContext or configured via Saml2Dsl.relyingPartyRegistrationRepository
Example:
The following example shows the minimal configuration required, using a hypothetical asserting party.
@Configuration
@EnableWebSecurity
class SecurityConfig {
@Bean
fun securityFilterChain(http: HttpSecurity): SecurityFilterChain {
http {
saml2Login { }
saml2Metadata { }
}
return http.build()
}
}Content copied to clipboard
Since
6.1
Parameters
saml2MetadataConfiguration
custom configuration to configure the SAML2 relying party metadata endpoint