Application
Members
id : string
id : string
The Client ID of this application.
secret : string?
secret : string?
The Client Secret of this application.
scope : string
scope : string
The OpenID scope of this application.
responseTypes : string[]
responseTypes : string[]
The OpenID response types of this application.
redirectUrls : string[]
redirectUrls : string[]
The OpenID redirect URLs of this application.
postLogoutRedirectUrls : string[]?
postLogoutRedirectUrls : string[]?
The OpenID post logout redirect URLs of this application.
Methods
constructor(config)
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?)
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
.
If an endpoint
argument is provided, that will be used instead of the default Vulos Identity endpoint.
See BaseAuth
for more information.
Last updated