Class BrandingProvider

java.lang.Object
com.irurueta.authserver.authorization.api.web.login.BrandingProvider

@Component public class BrandingProvider extends Object
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.
  • Field Details

    • MODEL_ATTRIBUTE

      public static final String MODEL_ATTRIBUTE
      Name of the model attribute that holds the branding.
      See Also:
    • branding

      private final org.springframework.beans.factory.ObjectProvider<BrandingProperties> branding
      Provider of the configured branding; absent in web slices that do not enable the properties.
  • Constructor Details

    • BrandingProvider

      public BrandingProvider()
  • Method Details

    • branding

      public BrandingProperties branding()
      Gets the branding of the pages.
      Returns:
      the configured branding, or the defaults when the properties are not enabled.