public class LoginMethod
extends java.lang.Object
connect URL
, for instance in a
WebView
. The URL will start the connect process on
Gluon Cloud and might redirect the browser to another website, e.g. Facebook.
When the connect flow has finished, the browser will finally be redirected to
the callback URL
. The response from this URL
contains information about the connected user as a JSON object.Modifier and Type | Class and Description |
---|---|
static class |
LoginMethod.Type
Defines the different methods by which you can log in to Gluon Cloud.
|
Constructor and Description |
---|
LoginMethod(LoginMethod.Type type,
java.lang.String gluonBaseUrl,
GluonCredentials gluonCredentials)
Create a new LoginMethod with the specified properties.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCallbackUrl()
Constructs the URL that identifies the callback URL that will be called
on Gluon Cloud as the final step in the connect flow.
|
java.lang.String |
getConnectUrl()
Constructs the URL that needs to be called to initiate the connect flow
for this login method on Gluon Cloud.
|
GluonCredentials |
getGluonCredentials() |
java.lang.String |
getLoginUrl() |
java.lang.String |
getSignUpUrl() |
LoginMethod.Type |
getType()
Returns the type of the LoginMethod and defines which service will be
used for connecting Gluon Cloud users.
|
public LoginMethod(LoginMethod.Type type, java.lang.String gluonBaseUrl, GluonCredentials gluonCredentials)
type
- the type of the login method.gluonBaseUrl
- the base URL to Gluon Cloud.gluonCredentials
- the application credentials to which this LoginMethod
belongs to.public LoginMethod.Type getType()
public GluonCredentials getGluonCredentials()
public java.lang.String getConnectUrl()
public java.lang.String getCallbackUrl()
public java.lang.String getLoginUrl()
public java.lang.String getSignUpUrl()