# How to perform offline authorization

"Itgrix: Offline Authorization" is a Bitrix24 module that enables the "Itgrix: Bitrix24 and Asterisk Integration" application to access the REST API even when there is no connection to the Bitrix authorization server at oauth.bitrix.info.

After installation, the module will autonomously generate an authorization token with a long validity period. By copying this token into the Itgrix connector files, you can authorize the application to use your corporate portal's API within a closed network.

## Step 1 Download the module archive

The authorization module archive will be provided by our manager upon your request

## Step 2 Place the archive in the portal folder

Place the archive in the following Bitrix24 portal directory:

`<portal_directory>/local/modules`

The full path may look like this:

`/home/<user name>/<domain>/local/modules/itgro.authprovider.zip`

Unzip the archive:

```bash
cd <portal_directory>/local/modules
unzip ./itgro.authprovider.zip && rm ./itgro.authprovider.zip
```

## Step 3 Install the application

Open the list of available solutions at:

`https://<domain>/bitrix/admin/partner_modules.php?lang=ru`

Verify that the "Itgrix: Autonomous Authorization (itgro.authprovider)" application is present in the list of solutions. If the solution is marked as not installed, click "Install" in the menu on the left.

Result:

<figure><img src="/files/v1HTOnEZ04hRrVwjdQsS" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/nRDVtVFx1O28sEubBWNQ" alt=""><figcaption></figcaption></figure>

## Step 4 Obtain an authorization code

Before receiving the code, make sure that the Itgrix Connector application is installed on the portal, or the code will be empty.

Open the application page at:

`https://<domain>/bitrix/admin/settings.php?mid=itgro.authprovider`

Verify that the application successfully displays the settings page with the generated authorization token:

<figure><img src="/files/Tf8YLJn6bFkmcg35CbAe" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.itgrix.com/setup/itgrix-setup-bitrix24-asterisk/how-to-perform-offline-authorization.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
