Checks whether the currently logged in user belongs to the target entity.
Checks if the provided method on the provided controller can be accessed by the current user.
Confirms a new password for a user using the provided auth strategy and confirm password reset data.
Get's the currently logged in user. When required is set to false this can return undefined.
Checks whether the currently logged in user has one of the provided roles.
Checks whether there is a currently logged in user.
Logs in a user using the provided auth strategy and credentials.
Refreshes the login of a user using the provided auth strategy and refresh login data.
Request a new password for a user using the provided auth strategy and request password reset data.
Resolves the belongs to metadata for the provided controller method. (Whether it's required for the user to somehow belong to the requested entity, etc.).
Resolves the has role metadata for the provided controller method. (Whether it's required for the user to have a certain role etc.).
Resolves the is logged in metadata for the provided controller method. (Whether it's required to be logged in, etc.).
Resolves the is not logged in metadata for the provided controller method. (Whether it's required to be logged out, etc.).
Default auth service implementation of Zibri.