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 TypeMethodDescriptionGets the name of the fragment inside the template.intorder()Gets the position of the fragment in the login page; lower values are rendered first.default StringGets the Thymeleaf fragment expression, such astemplate :: 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
Gets the Thymeleaf fragment expression, such astemplate :: fragment.- Returns:
- the fragment expression.
-