jira.js
    Preparing search index...

    Function generateServerAuthorizationUrl

    • Build the URL to send the user to so they can grant access to a Data Center instance.

      state is yours to generate and to verify when the callback comes back — it is what stops CSRF on the redirect.

      The clientId and redirectUri are the ones an administrator registered as an incoming application link; a redirectUri that does not match the registration is rejected by the instance rather than by this function.

      Parameters

      • params: {
            clientId: string;
            host: string;
            redirectUri: string;
            scopes: ServerOAuth2Scope[];
            state: string;
        }

      Returns string