Interface WebAuthorizeParameters

Parameters that are sent to a call to the /authorize endpoint.

interface WebAuthorizeParameters {
    additionalParameters?: {
        [key: string]: string;
    };
    audience?: string;
    connection?: string;
    invitationUrl?: string;
    maxAge?: number;
    nonce?: string;
    organization?: string;
    redirectUrl?: string;
    scope?: string;
    state?: string;
}

Properties

additionalParameters?: {
    [key: string]: string;
}

Any additional arbitrary parameters to send along in the URL.

Type declaration

  • [key: string]: string
audience?: string

The intended API identifier that will be the consumer for the issued access token.

connection?: string

The database connection in which to look for users.

invitationUrl?: string

The invitation URL for those users who have been invited to join a specific organization.

maxAge?: number

The maximum age in seconds that the resulting ID token should be issued for.

nonce?: string

One-time random value that is used to prevent replay attacks.

organization?: string

The organization in which user's should be authenticated into.

redirectUrl?: string

Specify a custom redirect URL to be used. Normally, you wouldn't need to call this method manually as the default value is autogenerated for you.

If you are using this, ensure a proper redirect URL is constructed in the following format Android: {YOUR_APP_PACKAGE_NAME}.auth0://{AUTH0_DOMAIN}/android/{YOUR_APP_PACKAGE_NAME}/callback iOS: {PRODUCT_BUNDLE_IDENTIFIER}.auth0://{AUTH0_DOMAIN}/ios/{PRODUCT_BUNDLE_IDENTIFIER}/callback

If you have useLegacyCallbackUrl set to true then the redirect URL should in the format Android: {YOUR_APP_PACKAGE_NAME}://{AUTH0_DOMAIN}/android/{YOUR_APP_PACKAGE_NAME}/callback iOS: {PRODUCT_BUNDLE_IDENTIFIER}://{AUTH0_DOMAIN}/ios/{PRODUCT_BUNDLE_IDENTIFIER}/callback

scope?: string

The scopes requested for the issued tokens. e.g. openid profile

state?: string

Random string to prevent CSRF attacks.

Generated using TypeDoc