Class SocialLoginMethodFragment
java.lang.Object
com.irurueta.authserver.authorization.api.web.social.SocialLoginMethodFragment
- All Implemented Interfaces:
LoginMethodFragment
Contributes the sign-in with the configured external providers to the login page: one link per enabled provider,
below the password form and the passkeys. The template reads
providers() through this bean, so the page
lists exactly the providers that are configured. The bean only exists while at least one is.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the fragment of the template.intorder()Gets the position of the fragment.Lists the enabled providers.Gets the template that holds the fragment.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.irurueta.authserver.authorization.api.web.login.LoginMethodFragment
reference
-
Field Details
-
ORDER
public static final int ORDERPosition of the social sign-in in the login page: after the passkeys, before the one-time tokens.- See Also:
-
providers
The enabled providers, by registration id, in the order they are offered.
-
-
Constructor Details
-
SocialLoginMethodFragment
Creates the fragment.- Parameters:
providers- registration ids of the enabled providers, in the order they are offered.
-
-
Method Details
-
templateName
Gets the template that holds the fragment.- Specified by:
templateNamein interfaceLoginMethodFragment- Returns:
login-social.
-
fragmentName
Gets the fragment of the template.- Specified by:
fragmentNamein interfaceLoginMethodFragment- Returns:
login.
-
order
public int order()Gets the position of the fragment.- Specified by:
orderin interfaceLoginMethodFragment- Returns:
ORDER.
-
providers
Lists the enabled providers.- Returns:
- their registration ids, which also name the message of each link.
-