Package com.irurueta.authserver.authorization.api.web.login
package com.irurueta.authserver.authorization.api.web.login
Login page, its controller and the extension points other authentication methods plug into.
-
ClassDescriptionEnables the binding of
BrandingProperties.Branding shown by the login, consent, logout and error pages, bound fromauthserver.ui.branding.*.Supplies theBrandingPropertiesevery server-rendered page shows, as the "branding" model attribute: the page renderer and the error view resolver add it to the model of each page they render.Extension point that lets an authentication method customize the login/UI security filter chain.Builds the content security policy of the server-rendered pages from theBrandingProperties: same-origin resources only and no framing, except that images may also bedata:URIs (the QR code of an authenticator app, rendered in memory so its secret never becomes a resource of its own) and, when the branding logo is an absolutehttp(s)URL, come from its origin (img-src 'self' data: <scheme://host[:port]>).Serves the login page, as the contractapis/auth-server/web-pages/auth-server-pages-v1.yamldescribes it through the generatedLoginPageApi, supplying the ordered login method fragments and the outcome of the last attempt to the template.Maps the exception of a failed sign-in, which Spring Security keeps in theSPRING_SECURITY_LAST_EXCEPTIONsession attribute, to the key of the message the login page shows.Adds the security headers of the server-rendered pages: the content security policy thatLoginContentSecurityPolicybuilds (same-origin resources only, no framing, and the origin of an absolute branding logo URL for images),X-Content-Type-OptionsandReferrer-Policy.Extension point that lets an authentication method contribute a Thymeleaf fragment to the login page.Permits the stylesheet shared by the server-rendered pages, which must load before anybody has signed in.