> For the complete documentation index, see [llms.txt](https://docs.forestall.io/forestall/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.forestall.io/forestall/configuration-center/azure-configurations/login-with-client-secret.md).

# Login With Client Secret

{% hint style="info" %}
The setup script behind **Copy PS** on the Azure Configuration page can create the client secret for you: set `$useCertificate = $false` before running it, and it prints the secret value at the end. See [Setup Script (Copy PS)](/forestall/configuration-center/azure-configurations.md#setup-script-copy-ps).
{% endhint %}

* [ ] Add Client Secret from `Manage` > `Certificates & Secrets` . Then Click "New client secret" button.

<figure><img src="https://3408039743-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FObpV44hoVkNmo5bFuVVL%2Fuploads%2Fgit-blob-9cb85fed209c851ab09592525943999ebc9146c0%2Fclient-secret.png?alt=media" alt=""><figcaption><p>New Client Secret</p></figcaption></figure>

* [ ] It opens a sidebar. Write a description to your client secret. Then click "Add" button

<figure><img src="https://3408039743-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FObpV44hoVkNmo5bFuVVL%2Fuploads%2Fgit-blob-4ff03cba146477ff3154bd5e5031010ebeb98b1d%2Fadd-a-client-secret.png?alt=media" alt=""><figcaption><p>Add a client secret</p></figcaption></figure>

* [ ] Copy the value and note it. You will use the client secret value to fill configuration.

<figure><img src="https://3408039743-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FObpV44hoVkNmo5bFuVVL%2Fuploads%2Fgit-blob-ba2caf07d5f67b20af00ab2e42e02d46c16a7386%2Fcopy-the-client-secret.png?alt=media" alt=""><figcaption><p>Client secret value</p></figcaption></figure>

### Azure Configuration in Forestall

**Authentication Method** must be selected as **Client Secret** and the **Client Secret** field must be filled with the appropriate secret value.

<figure><img src="https://3408039743-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FObpV44hoVkNmo5bFuVVL%2Fuploads%2Fgit-blob-4a68fb5e71dc3c2e6fdae12e9815ef006d61a07f%2Fazure-configurations-login-with-client-secret-image-1.png?alt=media" alt="Azure Configuration with Client Secret Authentication Method"><figcaption><p>Azure Configuration with Client Secret Authentication Method</p></figcaption></figure>
