Interface LoginMethodFragment

All Known Implementing Classes:
OttLoginMethodFragment, PasskeyLoginMethodFragment, PasswordLoginFragment, SocialLoginMethodFragment, X509LoginMethodFragment

public interface LoginMethodFragment
Extension point that lets an authentication method contribute a Thymeleaf fragment to the login page. The login template renders one fragment per bean, sorted by order().
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the name of the fragment inside the template.
    int
    Gets the position of the fragment in the login page; lower values are rendered first.
    default String
    Gets the Thymeleaf fragment expression, such as template :: fragment.
    Gets the name of the template that holds the fragment.
  • Method Details

    • templateName

      String templateName()
      Gets the name of the template that holds the fragment.
      Returns:
      the template name.
    • fragmentName

      String fragmentName()
      Gets the name of the fragment inside the template.
      Returns:
      the fragment name.
    • order

      int order()
      Gets the position of the fragment in the login page; lower values are rendered first.
      Returns:
      the order.
    • reference

      default String reference()
      Gets the Thymeleaf fragment expression, such as template :: fragment.
      Returns:
      the fragment expression.