Authenticator interface. More...
Public Member Functions | |
getUserId () | |
Get user's ID. More... | |
getUserRole () | |
Get user's role. More... | |
Authenticator interface.
State machine requires some basic informations about current user so it can determine whether or not it is allowed to trigger a transition or expose state machine state.
getUserId | ( | ) |
Get user's ID.
User's ID is limited to single scalar value (any integer or string).
Implemented in Auth.
getUserRole | ( | ) |
Get user's role.
Smalldb does not understand user roles, it can only check whether user's role is one of required values. User's role is global and it is not related to any instance of anything.
User is expected to have exactly one role.
Implemented in Auth.