rex_backendless_authentication
Plugin, ACE table, Discussion thread
Dependence: rex_backendless_api
Dependence: rex_backendless_api
Introduction
Authentication which is provided by backendless.
Authentication which is provided by backendless.
Usage
Sample capx
Sample capx
User identity
Reference
UserID (user identity) is an unique value to identify the user. It uses email as Identity by default. It could be changed to other field in
Reference
UserID (user identity) is an unique value to identify the user. It uses email as Identity by default. It could be changed to other field in
dashboard -> Data tab -> (System tables) Users -> Table schema and Permissions -> Identity field
For example, designer might set the identity to "name" field.
Remember to set the field name of identity in the property "UserID" of this plugin.
Remember to set the field name of identity in the property "UserID" of this plugin.
Login by userID(email) & password
Create account
Call "Action:Create account" to create account.
"Condition:On creating account" will be triggered if creating successful, otherwise "Condition:On creating account error" for creating error. Get error message by "Expression:ErrorMessage" or error code by "Expression:ErrorCode".
Call "Action:Create account" to create account.
"Condition:On creating account" will be triggered if creating successful, otherwise "Condition:On creating account error" for creating error. Get error message by "Expression:ErrorMessage" or error code by "Expression:ErrorCode".
Add initial user data
Call "Action:Set value" or "Action:Set boolean value" before "Action:Create account" to add extra initial user data.
Call "Action:Set value" or "Action:Set boolean value" before "Action:Create account" to add extra initial user data.
Login
Call "Action:Login" to login by userID(email) & password. "Condition:On login" will be triggered if login successful; otherwise "Condition:On login error" will be triggered.
Get user name and user ID by "Expression:UserName" and "Expression:UserID".
Call "Action:Login" to login by userID(email) & password. "Condition:On login" will be triggered if login successful; otherwise "Condition:On login error" will be triggered.
Get user name and user ID by "Expression:UserName" and "Expression:UserID".
Logging out
Call "Action:Logging out" to log out. "Condition:On logged out" will be triggered if login successful; otherwise "Condition:On logged out error" will be triggered.
Call "Action:Logging out" to log out. "Condition:On logged out" will be triggered if login successful; otherwise "Condition:On logged out error" will be triggered.
Is login
"Condition:Is login" will return true if logging in now.
"Condition:Is login" will return true if logging in now.
Session
Call "Action:Test session" to test if current session is valid. "Condition:On get valid session" will be triggered when current session is valid, otherwise "Condition:On get invalid session" will be triggered.
Call "Action:Test session" to test if current session is valid. "Condition:On get valid session" will be triggered when current session is valid, otherwise "Condition:On get invalid session" will be triggered.
Authentication by facebook
Sample capx
Call "Action:Login by facebook" to login by facebook. "Condition:On login" will be triggered if login successful; otherwise "Condition:On login error" will be triggered.
Get user name and user ID by "Expression:UserName" and "Expression:UserID".
Sample capx
Call "Action:Login by facebook" to login by facebook. "Condition:On login" will be triggered if login successful; otherwise "Condition:On login error" will be triggered.
Get user name and user ID by "Expression:UserName" and "Expression:UserID".
Read user data
Read user data by "Expression:UserData". It has 3 kinds of output
Read user data by "Expression:UserData". It has 3 kinds of output
- Expression:UserData , returns user data in JSON string
- Expression:UserData( key ) , returns a specific key
- Expression:UserData( key, default_value ) , returns default value if key is not found
Update user data
Follow these steps to update current logging user data -
Follow these steps to update current logging user data -
- Call "Action:Set value" or "Action:Set boolean value"
- Call "Action:Update" to update user data to server
- "Condition:On updating user data" will be triggered when updating successfully, otherwise "Condition:On updating user data error" will be triggered.
Debug panel
UserID, user name, email, last login time and created/updated time, and other user data of current user will be shown at debug panel.
UserID, user name, email, last login time and created/updated time, and other user data of current user will be shown at debug panel.