interface AzureStrategyOptions {
    clientId: string;
    clientSecret: string;
    domain: string;
    policy: string;
    prompt?: "none" | "login" | "consent" | "select_account";
    redirectURI: string | { toString: () => string };
    scopes?: AzureScopes;
    tenant: string;
}

Hierarchy

  • Pick<
        OAuth2Strategy.ConstructorOptions,
        "clientId"
        | "clientSecret"
        | "redirectURI",
    >
    • AzureStrategyOptions

Properties

clientId: string

This is the Client ID of your application, provided to you by the Identity Provider you're using to authenticate users.

clientSecret: string

This is the Client Secret of your application, provided to you by the Identity Provider you're using to authenticate users.

domain: string

Azure B2C specific options

policy: string
prompt?: "none" | "login" | "consent" | "select_account"
redirectURI: string | { toString: () => string }

The URL of your application where the Identity Provider will redirect the user after they've logged in or authorized your application.

scopes?: AzureScopes

OAuth2 strategy options

tenant: string