Plugin : Authentication by token
Author:Rex.Rainbow
- Authentication by tokens in cloud code.
Download
Properties
Login counter
Revocable session
- Enable revocable session.
Actions
Bind
Action:Bind
- Bind current account another token.
- Type ( string ) : Token type.
- Token ( string ) : Token.
Create account
Action:Create account
- Create account by token.
- Type ( string ) : Token type. Should not be "".
- Token ( string ) : Token.
Action:Create by random string
- Create account by random string.
- Type ( string ) : Token type. Should not be "".
General
Action:Logging out
- Logging out current account.
Initial user data
Action:Set value
- Set value into current item.
- Key ( string ) : The name of the key.
- Value ( number or string ) : The value to set, could be number or string.
Action:Set boolean value
- Set boolean value into current item.
- Key ( string ) : The name of the key.
- Boolean ( Combo ) : Boolean value.
- Options : ["False","True"]
Login
Action:login
- Login by token.
- Type ( string ) : Token type.
- Token ( string ) : Token.
Expressions
Error
Expression:ErrorCode
Expression:ErrorMessage
General auth data
Expression:UserID
- Unique user ID (object ID in User class)
Expression:UserName
Expression:Email
- Registered Email address.
Expression:LoginCount
- Get login counter (1-base). Return 0 if this feature is not enable.
Token
Expression:LastToken
Expression:LastTokenType
Conditions
Bind
Condition:On bind successfully
- Triggered when bind successfully.
Condition:On bind error
- Triggered when bind error.
General - login
Condition:On login successfully
- Triggered when login successfully.
Condition:On login error
- Triggered when login error.
User name & Password - create account
Condition:On creating account successfully
- Triggered when creating account successfully.
Condition:On creating account error
- Triggered when creating account error.