Interface I_CmsCustomLogin

All Superinterfaces:
I_CmsConfigurationParameterHandler

Interface for plugging in a custom login button in the login dialog which redirects to some sort of third-party authentication page.
  • Method Details

    • getMode

      Indicates how the custom login should be displayed.
      Returns:
      the display mode
    • getRedirect

      Gets the page to redirect to after the user has clicked on the custom button.
      Parameters:
      orgUnit - the organizational unit that has been selected, or null if none was selected
      Returns:
      the redirect URI
    • getLoginButtonCaption

      Gets the caption to display on the button for the given locale.
      Parameters:
      locale - the locale
      Returns:
      the caption to display
    • initialize

      void initialize(CmsObject cms)
      Sets the CmsObject needed for VFS operations or anything like that.
      Parameters:
      cms - a CmsObject with admin privileges
    • isEnabled

      boolean isEnabled()
      Only if this returns true should the custom login be enabled.
      Returns:
      true if the custom login should be enabled
    • needsOrgUnit

      boolean needsOrgUnit()
      Checks if the custom login method needs the user to select the OU in the login dialog.
      Returns:
      true if the custom login method needs the OU