Class Saml2WebSsoAuthenticationRequestFilter
java.lang.Object
com.codename1.backend.security.Saml2WebSsoAuthenticationRequestFilter
- All Implemented Interfaces:
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.
-
Method Summary
Modifier and TypeMethodDescriptiondoFilter(HttpServer.Request request, FilterChain chain) The answer torequest; null when nothing under the chain routes it, which the server answers 404.
-
Method Details
-
doFilter
Description copied from interface:SecurityFilterThe answer torequest; null when nothing under the chain routes it, which the server answers 404.- Specified by:
doFilterin interfaceSecurityFilter- Throws:
Exception
-