BaseAuth

Members

application : Application

The application that this object is associated with.

endpoint : string

The Vulos Identity server endpoint URL.

Methods

constructor(application, endpoint?)

This should only get called by classes that inherit the BaseAuth class.

  • application should be an instance of the Application object.

  • endpoint should be a string or a false value (like null or undefined) that represents the Vulos Identity endpoint.

// the constructor is called inside of the createAuth method of `Application`
import { BackendAuth } from "@vulos/identity-node-sdk"
const auth = applicaion.createAuth(BackendAuth)

See Application for more information.

async connect()

Connect the authentication object to the Vulos Identity servers.

createVerifier()

Create a verifier that other functions would take as an argument (as authVerifier).

A verifier is an object that contains some value that will be used to verify if the server's response is valid.

async createAuthUrl(authVerifier)

Create an authentication/consent URL for a user.

async processCallback(authVerifier, params)

Process the callback URL query parameters (or fragment parameters if using the implicit flow) to get a User object.

async getUserInfo(accessToken)

Get an UserInfo object using an access token provided by OpenID.

async refreshTokens(refreshToken)

Get a new OpenID token set using a refresh token.

Last updated