Application
Members
id : string
The Client ID of this application.
secret : string?
The Client Secret of this application.
scope : string
The OpenID scope of this application.
responseTypes : string[]
The OpenID response types of this application.
redirectUrls : string[]
The OpenID redirect URLs of this application.
postLogoutRedirectUrls : string[]?
The OpenID post logout redirect URLs of this application.
Methods
constructor(config)
Create a Vulos Application object based on a configuration object that has the following properties:
id: string(required): The Client ID of the Application (you can obtain this from the Vulos Identity dashboard by creating an application);secret: string: The Client Secret of the Application (you can obtain this from the Vulos Identity dashboard by creating an application, non-applicable for browser applications that use the implicit flow);scope: string(required): The OIDC scopes - "permissions" that your application has, they must match your application in the Vulos Identity dashboard.redirectUrls: string[](required): The URLs where Vulos Identity redirects after a user interaction;postLogoutRedirectUrls: string[]: The URLs where Vulos Identity redirects after a successful logout;responseTypes: string[]: The OIDC response types (defaults to['code']if a client secret is provided);
createAuth(authApi, endpoint?)
Create an authentication object for this application based on a constructor specified in authApi that's provided by @vulos/identity-browser-sdk or @vulos/identity-node-sdk.
Last updated