AuthUtils

auth. AuthUtils

Auth-related utility functions

Constructor

new AuthUtils()

Source:

Methods

(static) createEmptyStore() → {RouteStore}

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

(static) getConfig(key) → {String}

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

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

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

(static) log(level, …args)

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