Interface Saml2AuthenticationConverter


public interface Saml2AuthenticationConverter

Turns the user an identity provider vouched for into the authentication the application signs in: its authorities, and anything it looks up about the user in its own records. Return null to refuse the user.

http.saml2Login(saml -> saml.authenticationConverter(principal ->
    new Saml2Authentication(principal, rolesOf(principal.getAttribute("groups")))));