BaseAuth
Last updated
Last updated
This class is an interface, it shouldn't be created directly.
application :
The application that this object is associated with.
endpoint : string
The Vulos Identity server endpoint URL.
constructor(application, endpoint?)
This should only get called by classes that inherit the BaseAuth
class.
application
should be an instance of the object.
endpoint
should be a string or a false
value (like null
or undefined
) that represents the Vulos Identity endpoint.
async connect()
Connect the authentication object to the Vulos Identity servers.
This should get called before any other functions.
createVerifier()
Create a verifier that other functions would take as an argument (as authVerifier
).
It's recommended create one verifier per authentication request.
async createAuthUrl(authVerifier)
Create an authentication/consent URL for a user.
async processCallback(authVerifier, params)
async getUserInfo(accessToken)
async refreshTokens(refreshToken)
Get a new OpenID token set using a refresh token.
This probably shouldn't get called directly, it's called automatically when needed.
See for more information.
Process the callback URL query parameters (or fragment parameters if using the implicit flow) to get a object.
Get an object using an access token provided by OpenID.
This probably shouldn't get called directly, use instead.