UserMemoryCollection

Create an user collection stored in memmory

Constructors

this
this(immutable(string[]) accessList, User[] list)

Members

Functions

byId
User byId(string id)

Get an user by id

byToken
User byToken(string token)

Get an user by an existing token

contains
bool contains(string identification)

Check if the collection has an user by email or username

createToken
Token createToken(string email, SysTime expire, string[] scopes, string type, string[string] meta)

Create a token for an user

createUser
bool createUser(UserModel data, string password)

Create a new user data from some user data

empower
void empower(string email, string access)

Empower an user with some scope access

opIndex
User opIndex(string identification)

Get an user by email or username

revoke
void revoke(string token)

Revoke a token

Inherited Members

From UserCollection

opBinaryRight
alias opBinaryRight = Collection!User.opBinaryRight
opIndex
alias opIndex = Collection!User.opIndex
createUser
bool createUser(UserModel data, string password)

Create a new user data from some user data

createToken
Token createToken(string email, SysTime expire, string[] scopes, string type, string[string] meta)

Create a token for an user

revoke
void revoke(string token)

Revoke a token

empower
void empower(string email, string access)

Empower an user with some scope access

byToken
User byToken(string token)

Get an user by an existing token

byId
User byId(string id)

Get an user by id

contains
bool contains(string email)

Check if the collection has an user by email

Meta