authenticator
Summary
The authenticator helps manipulate users authenticated by passport strategies.
Users returned by passport are not necessary OpenVeo users. It could be users from a third party authentication server. The authenticator helps making sure that the authenticated user is a ready to use OpenVeo user.
Item Index
Methods
- deserializeUser static
- populateUser
- serializeUser static
- verifyUserAuthentication static
- verifyUserByCredentials static
Methods
deserializeUser
Syntax
deserializeUser
(
static
async
-
data
-
callback
Summary
Fetches a user with its permissions from serialized data.
populateUser
Syntax
populateUser
(
async
-
user
-
callback
Summary
Populates user with detailed roles and permissions.
serializeUser
Syntax
serializeUser
(
static
async
-
user
-
callback
Summary
Serializes only essential user information required to retrieve it later.
verifyUserAuthentication
Syntax
verifyUserAuthentication
(
static
async
-
thirdPartyUser
-
strategy
-
callback
Summary
Verifies user as returned by third party providers.
OpenVeo trusts users from third party providers, if the user does not exist in OpenVeo it is created with minimum information.
verifyUserByCredentials
Syntax
verifyUserByCredentials
(
static
async
-
email
-
password
-
callback
Summary
Verifies a user as returned by the passport local strategy.