Module: auth

Hapi authentication plugin. This plugin registers authentication strategies for session management using cookies and for OAuth authentication with Okta using bell. It sets the default authentication strategy to "session" and extends the server response context with user auth information for views.
Version:
  • 1.0.0
Source:

Methods

(async, static) register(server) → {Promise.<void>}

Registers the authentication plugin with the Hapi server. The plugin registers two authentication strategies: - "session": Uses the cookie scheme for session management. - "okta": Uses the bell scheme for Okta OAuth. It sets the default authentication strategy to "session" and extends the response with authentication context for any view responses.
Parameters:
Name Type Description
server Object The Hapi server instance.
Source:
Returns:
A promise that resolves once registration and configuration are complete.
Type
Promise.<void>