AboutSupportDeveloper GuideVersion 1.0.1
  • Initiates the OAuth 2.0 authorization code flow and establishes a connection with a ServiceNow instance.

    Parameters

    • instanceUrl: string

      The URL of the ServiceNow instance.

    • clientId: string

      The ID of the registered OAuth application to use for authorization.

    • scope: string[] = []

      Provide any additional REST API Auth Scopes that may be required by your app.

    • Optional authFlowParams: AuthFlowParams

      Optionally modify the authorization process by providing additional parameters.

    • Optional authWindowOptions: AuthWindowOptions

      Optionally change the appearance and behavior of the authorization popup window by specifying additional options.

    Returns Promise<ServiceNowConnection>

    A connection which can be used to execute REST API requests against the instance.

    Throws

    AuthorizationError if the authorization process does not complete successfully.

    Throws

    ParameterError if invalid function parameter values are detected.

Generated using TypeDoc