Plugin : Authentication by token

Author:Rex.Rainbow

Download

Properties

Login counter

  • Enable login counter.
    • Options : ["No","Yes"]

Revocable session

  • Enable revocable session.
    • Options : ["No","Yes"]

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

  • Error code.

Expression:ErrorMessage

  • Error message.

General auth data

Expression:UserID

  • Unique user ID (object ID in User class)

Expression:UserName

  • Unique user name.

Expression:Email

  • Registered Email address.

Expression:LoginCount

  • Get login counter (1-base). Return 0 if this feature is not enable.

Token

Expression:LastToken

  • Get last token.

Expression:LastTokenType

  • Get last token type.

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.