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,
java.lang.String gluonApplicationKey)
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.
|
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, java.lang.String gluonApplicationKey)
type
- the type of the login method.gluonBaseUrl
- the base URL to Gluon Cloud.gluonApplicationKey
- the application key to which this LoginMethod
belongs to.public LoginMethod.Type getType()
public java.lang.String getConnectUrl()
public java.lang.String getCallbackUrl()