# How to set up Entra ID for Frends

We strongly recommend using your own Entra ID (Azure AD authentication) to manage your Frends users.

The following steps explain how to get started.

## Requirements

In order to set up Entra ID for Frends login, you will need access to Azure Portal to manage your Entra ID, in order to set up an app registration there.

You will also need administrator rights to your Frends Tenant in order to create the OpenID Connect Application.&#x20;

Alternatively, you can provide this guide and the mentioned details to your Azure and/or Frends administrators to set up the flow.&#x20;

## Set Up an Application in Azure

First, you will need to set up the application in the Azure instance where the users you wish to authenticate are registered.

[You can additionally follow the instructions from Microsoft](https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-integrating-applications), along with this guide.

### Create an Application <a href="#h_0561de7c02" id="h_0561de7c02"></a>

Go to Azure Portal using an account that can register new applications in the directory, and go to **Microsoft Entra ID > Manage > App registrations**, and click **New registration**.

<figure><img src="https://4223974572-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0p415NUmUmiF4ayjI81L%2Fuploads%2FR7qmBrU98xiXCIh1Mxf7%2Fscreenshot-rocks%20(68).png?alt=media&#x26;token=b3abdd4a-ac4f-4524-9078-f40dd281ff3f" alt=""><figcaption><p>Creating a new app registration in Azure.</p></figcaption></figure>

Give the app a unique name, and choose suitable supported account type. By default the top option gives access to company's users in single tenant configuration.

<figure><img src="https://4223974572-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0p415NUmUmiF4ayjI81L%2Fuploads%2FChQte9BnqeRAd0Hk6HhB%2Fscreenshot-rocks%20(90).png?alt=media&#x26;token=ef75f536-b137-48af-a2ff-ef17bb701dfd" alt=""><figcaption><p>Initial settings for app registration.</p></figcaption></figure>

### Application and Tenant ID

Find your newly created application and go to its **Overview** page, if you didn't land on it by default. Copy the values of these fields and save them for use.

* Application (client) ID
* Directory (tenant) ID

<figure><img src="https://4223974572-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0p415NUmUmiF4ayjI81L%2Fuploads%2FyyxGHrGSZBnflbX3H6W3%2Fscreenshot-rocks%20(69).png?alt=media&#x26;token=e6dfb9cc-3cd7-4b95-9bc1-8293fc7a7bc8" alt=""><figcaption><p>Take note of these values for adding the registration to Frends later.</p></figcaption></figure>

### Enable ID Tokens <a href="#h_bd41a7a518" id="h_bd41a7a518"></a>

To use the authentication you need to set the response from the application to contain an ID token. When viewing the created App registration, you can access the authentication options by navigating to **Manage > Authentication** and selecting **Add a platform**.

<figure><img src="https://4223974572-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0p415NUmUmiF4ayjI81L%2Fuploads%2FeauItFAYK3phq4yGUix5%2Fscreenshot-rocks%20-%202025-10-03T115728.918.png?alt=media&#x26;token=2fd578b3-86df-4358-9190-ac11b0907e2f" alt=""><figcaption><p>Access tokens are required to be set up within a platform.</p></figcaption></figure>

When setting up the platform, choose the platform type as **Web**, and click next.

<figure><img src="https://4223974572-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0p415NUmUmiF4ayjI81L%2Fuploads%2F7kEmfVKBiJFcLgrMJ0fC%2Fscreenshot-rocks%20-%202025-10-03T121247.553.png?alt=media&#x26;token=853d0a3a-658b-4e08-9b35-f303a915d12f" alt=""><figcaption><p>Choose Web as the platform type.</p></figcaption></figure>

Configuring the platform includes setting up the Redirect and Logout URLs as well as selecting ID Tokens to be issued.

<figure><img src="https://4223974572-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0p415NUmUmiF4ayjI81L%2Fuploads%2FGWlInSWISjbWEoH0SEvq%2Fscreenshot-rocks%20-%202025-10-03T120652.458.png?alt=media&#x26;token=3e8be313-9dcb-4ab2-81a0-5a139c051d5c" alt=""><figcaption><p>Setting the URIs and ID Token generation.</p></figcaption></figure>

### Redirect URI

Starting with Frends 5.7, the Redirect URI must include an OIDC suffix: `signin-oidc-[Application ID]`.

Example (Frends 5.6 or earlier):

* Redirect URI: `https://myfrendstenant.frendsapp.com`

Updated Redirect URI for Frends 5.7+:

* Redirect URI: `https://myfrendstenant.frendsapp.com/signin-oidc-3e89b538-f75c-42b5-96f1-402f1ac0a549`

Use the earlier saved **Application ID** here instead of the example value.

{% hint style="warning" %}
**Use your own Application ID**, obtained from Azure Portal for your Application registration, instead of the example value. The example value will not work for you.
{% endhint %}

### Logout URL

Set the Logout URL to `https://<myfrendstenant>.frendsapp.com/Account/SignOut` , replacing the Tenant's name with your specific Frends Tenant.

### Redirect URI for migrating from old Frends version

If you are currently using older Frends version, but plan on migrating to 5.7 or later, you can add the new URI in advance **as an additional URI** to the App Registration to ensure functionality before and after the update.

<figure><img src="https://4223974572-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0p415NUmUmiF4ayjI81L%2Fuploads%2FvTw6rF9SBTpDmXfLqXlT%2Fscreenshot-rocks%20-%202025-10-03T120836.209.png?alt=media&#x26;token=0fff980f-b2c5-4e21-b9d1-b0b72a3a174c" alt=""><figcaption><p>Example values for migration from old Frends version.</p></figcaption></figure>

## Configure Frends <a href="#configure-frends" id="configure-frends"></a>

For Frends to be able to use the Entra ID Application the following information is needed from the registered Application in Azure:

* Application ID: e.g. `50549e93-99dd-4690-9948-3c8ec076ddfb`
* Tenant: e.g companyname.onmicrosoft.com (Check Azure domain address for example in <https://portal.azure.com/#settings/directory>)

{% hint style="warning" %}
**Use your own Application ID**, obtained from Azure Portal for your Application registration, instead of the example value. The example value will not work for you.
{% endhint %}

Navigate to **Administration -> User Management -> OpenId**, and click on **Create new application**.&#x20;

Insert the vales like in the example, replacing them with your specific values from Azure Portal, Frends Tenant and who should be the administrators.

<figure><img src="https://4223974572-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0p415NUmUmiF4ayjI81L%2Fuploads%2F4QuihkMfx9IZotZBA08a%2Fscreenshot-rocks%20(91).png?alt=media&#x26;token=1bce0ca7-2f43-478c-9790-32987b2a5730" alt=""><figcaption><p>Example values for an OpenID application registration.</p></figcaption></figure>

If you are setting up the authentication for Frends versions before 5.7, the OpenID settings might look like the following. Follow the tooltips and the values from the new version for examples on the values to be used.

<figure><img src="https://4223974572-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0p415NUmUmiF4ayjI81L%2Fuploads%2FgArTtagl999zeUyS2BkA%2Fimage.png?alt=media&#x26;token=d7f548e5-3bda-4c09-8850-d171ffdd6b16" alt=""><figcaption><p>Example of Frends 5.6 OpenID settings.</p></figcaption></figure>
