Define the options for the authorization URL

The client ID of the application

The redirect URI of the application

The response type of the authorization request

The scope of the authorization request

interface GetAuthorizationUrlOptions {
    callbackFactory?: JourneyCallbackFactory;
    clientId: string;
    errorParams?: string[];
    login?: "redirect" | "embedded";
    middleware?: LegacyRequestMiddleware[];
    oauthThreshold?: number;
    platformHeader?: boolean;
    prefix?: string;
    prompt?: "none" | "login" | "consent";
    query?: Record<string, string>;
    realmPath?: string;
    redirectUri: string;
    responseMode?: "fragment" | "form_post" | "pi.flow" | "query";
    responseType: ResponseType;
    scope: string;
    serverConfig?: ServerConfig;
    state?: string;
    successParams?: string[];
    tokenStore?: CustomStorageObject | "sessionStorage" | "localStorage";
    tree?: string;
    type?: string;
    verifier?: string;
}

Hierarchy (View Summary)

Properties

callbackFactory?: JourneyCallbackFactory
clientId: string

These four properties clientid, scope, responseType and redirectUri are required when using this type, which are not required when defining Config.

errorParams?: string[]
login?: "redirect" | "embedded"
oauthThreshold?: number
platformHeader?: boolean
prefix?: string
prompt?: "none" | "login" | "consent"
query?: Record<string, string>
realmPath?: string
redirectUri: string
responseMode?: "fragment" | "form_post" | "pi.flow" | "query"
responseType: ResponseType
scope: string
serverConfig?: ServerConfig
state?: string
successParams?: string[]
tokenStore?: CustomStorageObject | "sessionStorage" | "localStorage"
tree?: string
type?: string
verifier?: string