public interface AuthenticationView
An AuthenticationView is an interface that defines how a user can connect with Gluon CloudLink, by using one of the available login methods that are defined in the application. Implementations will usually show up a list of buttons that each represent one of these login methods. When a login method is clicked, it could show a web page that starts the connect flow by loading the login method's connect URL.
UserClient will try to create an AuthenticationView instance by
loading the class that is defined in the system property
com.gluonhq.cloudlink.client.user.AuthenticationView. If the system
property is not defined, it will try to load the default Gluon Mobile implementation,
which is based on Glisten.
|Modifier and Type||Method and Description|
This method is called every time a request to Gluon CloudLink is made that requires an authenticated user and no authenticated user is currently active in the application.
Sets an authentication provider on the view.
void authenticate(Authenticator authenticator)
authenticatoris used to process various tasks depending on the status of authentication during the authentication process.
authenticator- An Authenticator to be used during the authentication process
void setAuthenticationProvider(AuthenticationProvider authenticationProvider)
authenticationProvider- Authentication provider to fetch login methods.