Methods
(static) setProductEmailParams(params) → {LoginBuilder}
Set Product Email template parameter
Parameters:
Name | Type | Description |
---|---|---|
params |
SimpleObject
|
The parameters used to interpolare the template |
(static) setSMSTemplate(smsTemplate) → {LoginBuilder}
Set the MSISDN pin forgot sms template
Parameters:
Name | Type | Description |
---|---|---|
smsTemplate |
string
|
The SMS template |
__setDomain(domain) → {LoginBuilder}
Set domain application. Used in MSISDN flow only. TEMPORARY AND ONLY FOR TEST!
Parameters:
Name | Type | Description |
---|---|---|
domain |
String
|
the application domain |
getCookieLoginFlow() → {CookieLoginFlow}
Create an cookieflow login flow.
Returns:
- Type:
-
CookieLoginFlow
getEmailConfirmFlow() → {EmailConfirmFlow}
Create an email login flow.
Returns:
- Type:
-
EmailConfirmFlow
getEmailForgotFlow() → {EmailForgotFlow}
Create an email forgot flow.
Returns:
- Type:
-
EmailForgotFlow
getEmailSignupFlow() → {EmailSignupFlow}
Create an email signup flow.
Returns:
- Type:
-
EmailSignupFlow
getExternalLoginFlow() → {ExternalLoginFlow}
Create an external login flow.
Returns:
- Type:
-
ExternalLoginFlow
getGenericLoginFlow() → {GenericLoginFlow}
Create a generic login flow.
Returns:
- Type:
-
GenericLoginFlow
getMSISDNPINForgotFlow() → {MSISDNPINForgotFlow}
Create a msisdn pin forgot flow.
Returns:
- Type:
-
MSISDNPINForgotFlow
getMSISDNPINLoginFlow() → {MSISDNPINLoginFlow}
Create a msisdn pin login flow.
Returns:
- Type:
-
MSISDNPINLoginFlow
getMSISDNURLoginFlow() → {MSISDNURLoginFlow}
Create a msisdn login flow.
Returns:
- Type:
-
MSISDNURLoginFlow
getPaymentReceiptLoginFlow() → {PaymentReceiptLoginFlow}
Create a payment receipt login flow.
Returns:
- Type:
-
PaymentReceiptLoginFlow
getRecognitionLoginFlow() → {RecognitionLoginFlow}
Create an recognition login flow.
Returns:
- Type:
-
RecognitionLoginFlow
setAccessToken(access_token) → {LoginBuilder}
Set access token from oauth.
Parameters:
Name | Type | Description |
---|---|---|
access_token |
String
|
The access token given |
setAlias(alias) → {LoginBuilder}
Set Alias. Used in MSISDNPINLoginFlow
Parameters:
Name | Type | Description |
---|---|---|
alias |
String
|
setAllowCustomLogin() → {LoginBuilder}
Persist the custom login among the page refreshing. A session cookie is set.
setCookieFlowID(cookieflowID) → {LoginBuilder}
Set cookieflow id. Used in cookieflow flow only.
Parameters:
Name | Type | Description |
---|---|---|
cookieflowID |
String
|
cookieflow user id |
setCustomData(loginData) → {LoginBuilder}
Set login data. Useful to track campaign parameters
Parameters:
Name | Type | Description |
---|---|---|
loginData |
Newton.SimpleObject
|
the custom data for the login event |
setCustomID(customID) → {LoginBuilder}
Set custom id. Used in custom flow only.
Parameters:
Name | Type | Description |
---|---|---|
customID |
String
|
custom user id |
setEmail(email) → {LoginBuilder}
Set email. Used in Email flows.
Parameters:
Name | Type | Description |
---|---|---|
email |
String
|
the email |
setEmailToken(email_token) → {LoginBuilder}
Set the email token. Used in EmailConfirmFlow
Parameters:
Name | Type | Description |
---|---|---|
email_token |
Object
|
the email_token |
setErrorUrl(errorUrl) → {LoginBuilder}
Set error url.
Parameters:
Name | Type | Description |
---|---|---|
errorUrl |
String
|
setExternalID(externalID) → {LoginBuilder}
Set external id. Used in external flow only.
Parameters:
Name | Type | Description |
---|---|---|
externalID |
String
|
external user id |
setForgot(forgot_token) → {LoginBuilder}
Set the email forgot token. Used in EmailConfirmForgotFlow
Parameters:
Name | Type | Description |
---|---|---|
forgot_token |
Object
|
the forgot_token |
setMSISDN(msisdn) → {LoginBuilder}
Set MSISDN. Used in MSISDNPINLoginFlow
Parameters:
Name | Type | Description |
---|---|---|
msisdn |
String
|
setNoPIN(pin) → {LoginBuilder}
Set a fake PIN in order to perform the login without PIN. Used in MSISDNPINLoginFlow. This method overwrite the previous "setPIN" setting
Parameters:
Name | Type | Description |
---|---|---|
pin |
String
|
setOAuthProvider(oauth) → {LoginBuilder}
Set oauth provider needed for OAuthLoginFlow
Parameters:
Name | Type | Description |
---|---|---|
oauth |
String
|
provider |
setOnFlowCompleteCallback(callback) → {LoginBuilder}
Set callback invoked when a login flow is ended
Parameters:
Name | Type | Description |
---|---|---|
callback |
FlowCompleteCallback
|
Invoked at the end of the login flow |
setOnForgotFlowCallback(callback) → {LoginBuilder}
Set callback invoked when a forgot flow is ended
Parameters:
Name | Type | Description |
---|---|---|
callback |
FlowCompleteCallback
|
Invoked at the end of the login flow |
setOperator(operator) → {LoginBuilder}
Set Operator. Used in MSISDNPINLoginFlow
Parameters:
Name | Type | Description |
---|---|---|
operator |
String
|
setPassword(password) → {LoginBuilder}
Set the password. Used in Email flows.
Parameters:
Name | Type | Description |
---|---|---|
password |
String
|
the password |
setPIN(pin) → {LoginBuilder}
Set PIN. Used in MSISDNPINLoginFlow
Parameters:
Name | Type | Description |
---|---|---|
pin |
String
|
setRecognitionFlowId(recognitionId) → {LoginBuilder}
Set recognition id. Used in recognition flow only.
Parameters:
Name | Type | Description |
---|---|---|
recognitionId |
String
|
recognition user id |
setRecognitionFlowToken(token) → {LoginBuilder}
Set token. Used in recognition flow only.
Parameters:
Name | Type | Description |
---|---|---|
token |
String
|
the JWT |
setReturnUrl(returnUrl) → {LoginBuilder}
Set return url.
Parameters:
Name | Type | Description |
---|---|---|
returnUrl |
String
|
setSerializedPayment(blob) → {LoginBuilder}
Set serialized payment
Parameters:
Name | Type | Description |
---|---|---|
blob |
String
|
the serialized payment |
setSubscribeUrl(subscribeUrl) → {LoginBuilder}
Set subscribe url. Used in MSISDN flow only.
Parameters:
Name | Type | Description |
---|---|---|
subscribeUrl |
String
|
the login url |
setUsername(username) → {LoginBuilder}
Set username
Parameters:
Name | Type | Description |
---|---|---|
username |
String
|
setUserProperties(user_properties) → {LoginBuilder}
Set the user properties if the EmailSignupFlow succeeded
Parameters:
Name | Type | Description |
---|---|---|
user_properties |
SimpleObject
|
the user_properties |
setWaitingUrl(waitingUrl) → {LoginBuilder}
Set waiting url. Used in OAuthLoginFlow
Parameters:
Name | Type | Description |
---|---|---|
waitingUrl |
String
|