AuthUtils

auth. AuthUtils

Auth-related utility functions

Constructor

new AuthUtils()

Source:

Methods

(static) createEmptyStore() → {RouteStore}

Source:
Returns a generic empty object for mapping values to HTTP methods
Returns:
Type
RouteStore

(static) getConfig(key) → {String}

Source:
Shortcut to retrieve auth config values
Parameters:
Name Type Description
key String
Returns:
Type
String

(async, static) initAuthData(req) → {Promise}

Source:
Adds auth data to the incoming request
Parameters:
Name Type Description
req external:ExpressRequest
Returns:
Type
Promise

(static) log(level, …args)

Source:
Logs a message using the logger
Parameters:
Name Type Attributes Description
level String The log level
args * <repeatable>
Other aruments