Class Saml2WebSsoAuthenticationRequestFilter

java.lang.Object
com.codename1.backend.security.Saml2WebSsoAuthenticationRequestFilter
All Implemented Interfaces:
SecurityFilter

public final class Saml2WebSsoAuthenticationRequestFilter extends Object implements SecurityFilter

Starts a SAML sign-in at GET {authenticateBase}/{registrationId}: makes an AuthnRequest, remembers its ID in a signed cookie, and sends the browser to the identity provider. Also serves this server's metadata at GET {metadataBase}/{registrationId}.

The request's ID is kept in a cookie rather than the session because the identity provider's answer is a cross-site POST: a SameSite=Lax session cookie does not come with it, and the response could not be held to the request. The cookie is __Host-, signed, SameSite=None and short lived.