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.
  • Class
    Description
    Enables the binding of BrandingProperties.
    Branding shown by the login, consent, logout and error pages, bound from authserver.ui.branding.*.
    Supplies the BrandingProperties every 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 the BrandingProperties: same-origin resources only and no framing, except that images may also be data: 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 absolute http(s) URL, come from its origin (img-src 'self' data: <scheme://host[:port]>).
    Serves the login page, as the contract apis/auth-server/web-pages/auth-server-pages-v1.yaml describes it through the generated LoginPageApi, 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 the SPRING_SECURITY_LAST_EXCEPTION session attribute, to the key of the message the login page shows.
    Adds the security headers of the server-rendered pages: the content security policy that LoginContentSecurityPolicy builds (same-origin resources only, no framing, and the origin of an absolute branding logo URL for images), X-Content-Type-Options and Referrer-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.