# Web Adapter (Web SDK Backend) Configuration

{% hint style="warning" %}
If you use Oz Web SDK via SaaS, please contacts our engineers.
{% endhint %}

<figure><img src="https://2532558063-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5g6dgsxRbyrCvB0uAf8f%2Fuploads%2FF5FRVAlygIumOeT53ZMo%2Fcomponents-public-webadapter.svg?alt=media&#x26;token=d8215ae3-7dce-4cfe-8241-1045cca83772" alt=""><figcaption></figcaption></figure>

Oz Liveness Web Adapter is the backend part of Web SDK and is set up via changes in the configuration file stored at the Oz Liveness Web Adapter server: `/core/app_config.json`

<details>

<summary>Please note: the Adapter guide covers the on-premise model of usage only.</summary>

Before you start, it is highly advisable that you get an access token.

1. Create a service account. Its access token is set to expire in 5 years.
2. Install Postman and [download](https://doc.ozforensics.com/oz-knowledge/guides/developer-guide/api/oz-api/postman-collections) the Oz API collection needed.
3. Authorize: send a`POST request {{host}}/api/authorize/auth`, where `{{host}}` stands for the API server address. In the request body, send the service account credentials: login and password. For more information, please refer to [this article](https://doc.ozforensics.com/oz-knowledge/guides/developer-guide/api/oz-api/use-cases/authentication).
4. The response to your request will contain the `access_token` parameter. Copy its value to the `api_token` parameter of the `/core/app_config.json` file. Set `api_use_token` to `config`. You're done.

</details>

Please find a sample for Oz Liveness Web SDK [here](https://gitlab.com/oz-forensics/oz-liveness-sample-web/-/blob/master/OzLivenessWebSDKSample.html). To make it work, replace `<web-adapter-url>` with the Web Adapter URL you've received from us.

For Angular and React, replace `https://web-sdk.sandbox.ozforensics.com` in index.html.

* [Angular sample](https://gitlab.com/oz-forensics/oz-liveness-sample-web-angular)
* [React sample](https://gitlab.com/oz-forensics/oz-liveness-sample-web-react/-/tree/main/public)

{% content-ref url="web-adapter/configuration-file-settings" %}
[configuration-file-settings](https://doc.ozforensics.com/oz-knowledge/guides/administrator-guide/web-adapter/configuration-file-settings)
{% endcontent-ref %}

{% content-ref url="web-adapter/configuration-using-environment-variables" %}
[configuration-using-environment-variables](https://doc.ozforensics.com/oz-knowledge/guides/administrator-guide/web-adapter/configuration-using-environment-variables)
{% endcontent-ref %}

{% content-ref url="web-adapter/server-configuration-via-environment-variables" %}
[server-configuration-via-environment-variables](https://doc.ozforensics.com/oz-knowledge/guides/administrator-guide/web-adapter/server-configuration-via-environment-variables)
{% endcontent-ref %}
