interface OAuth2Config {
    accessTokenUrl: string;
    appId?: string;
    authorizationUrl?: string;
    authService?: string;
    clientId: string;
    clientSecret?: string;
    deployUrl?: string;
    grantType?: string;
    password?: string;
    pkce?: boolean;
    redirectUrl?: string;
    username?: string;
}

Properties

accessTokenUrl: string

The endpoint for retrieving the access token.

appId?: string

Optional application ID for which access is requested, If not specified will utilize the default access group within the current user's operator record.

authorizationUrl?: string

The endpoint for retrieving the access token.

authService?: string

Infinity Authentication service alias, only used for the authorization code flow.

clientId: string

The client ID of the OAuth 2 client registration.

clientSecret?: string

The client secret of the OAuth 2 client registration.

deployUrl?: string

The path to the static application files, only used for the authorization code flow. Note that the full url (including the origin) should be used.

grantType?: string

The requested grant type used for retrieving an access token.

password?: string

The password is required for the credentials flow.

pkce?: boolean

Whether to enable the Proof Key for Code Exchange for the authorization code flow.

redirectUrl?: string

The url to redirect to after authorization succeeded

username?: string

The username is required for the credentials flow.