Classes: ClientAuthenticationManager

ClientAuthenticationManager

Wrapper class for the oidc-client.js library that handles client-side implicit authentication.


new ClientAuthenticationManager(oidcConfig)

Constructor for authentication manager

Parameters:
Name Type Description
oidcConfig

The oidc section of configuration object as parsed by the 'config' module from the configuration jsons

Source:
Fires:

Methods


executeSilentSignin()

Attempts to login the user using a silent sign-in. This method should only be called if another login is not already in process.

Source:
Returns:

A Promise that resolves when signin has completed. https://raw.githubusercontent.com/IdentityModel/oidc-client-js/dev/lib/oidc-client.js

Type
Promise

logout()

Logout the user from Node.JS, the browser and the single sign-on account server

The argument is used in the oidc-client->signoutRedirect

Source:

setupUserManager(oidcConfig)

Initializes the UserManager from the oidc-client module.

Parameters:
Name Type Description
oidcConfig

The oidc section of configuration object as parsed by the 'config' module from the configuration jsons

Source:
Returns:

A Promise that resolves when setup has completed.

Type
Promise