> For the complete documentation index, see [llms.txt](https://docs.konvu.com/konvu/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.konvu.com/konvu/administration/account-management/set-up-entra-id-as-an-identity-provider.md).

# Set up Entra ID (OIDC) as an Identity Provider

This guides shows you how to connect Entra ID (former Azure Active Directory) as an identity provider in Konvu

You need to have access to an Entra ID Tenant. If you do not yet have one follow [this guide from Microsoft](https://docs.microsoft.com/en-us/azure/active-directory/develop/quickstart-create-new-tenant) to create one for free.

### Register a new application <a href="#register-a-new-application" id="register-a-new-application"></a>

1. Browse to the [App registration menus create dialog](https://portal.azure.com/#view/Microsoft_AAD_RegisteredApps/CreateApplicationBlade/quickStartType~/null/isMSAApp~/false) to create a new app.
2. Give the application a name ("Konvu") and choose who should be able to log in (Single-Tenant, Multi-Tenant, Personal Accounts, etc.) This setting will also have an impact on how to configure the provider later on in Konvu.
3. Choose "Web" in the redirect uri field and paste the Konvu Callback URL: <https://auth.konvu.com/ui/login/login/externalidp/callback>
4. Save the Application (client) ID and the Directory (tenant) ID from the detail page
5. Register the application

<figure><img src="https://4216786002-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fd2uS6kuROSFKDrT5HC1U%2Fuploads%2FlpKQtU1hlP9XJnYe095y%2Fimage.png?alt=media&amp;token=37774f7c-6298-413f-8a01-41493e91a7f9" alt=""><figcaption></figcaption></figure>

<figure><img src="https://4216786002-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fd2uS6kuROSFKDrT5HC1U%2Fuploads%2FVbDfXXE4yRrwB3gl9lSU%2Fimage.png?alt=media&amp;token=392e7fac-5ec9-425f-84a4-3e028d0a5b86" alt=""><figcaption></figcaption></figure>

### Add client secret

Generate a new client secret to authenticate your user.

1. Click on client credentials on the detail page of the application or use the menu "Certificates & secrets"
2. Click on "+ New client secret" and enter a description and an expiry date, add the secret afterward
3. Copy the value of the secret. You will not be able to see the value again after some time

<figure><img src="https://4216786002-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fd2uS6kuROSFKDrT5HC1U%2Fuploads%2FWNt3MN1Gu8Gv8u83c1hY%2Fimage.png?alt=media&amp;token=f7a75bc7-356a-4a0a-a8fd-90ccdbd3745e" alt=""><figcaption></figcaption></figure>

### Token settings <a href="#token-settings" id="token-settings"></a>

To allow Konvu to get the information from the authenticating user you have to configure what kind of optional claims should be returned in the token.

1. Click on Token settings in the side menu
2. Click on "+ Add optional claim"
3. Add email, family\_name (last name of the user), given\_name (first name of the user) and preferred\_username to the id token

<figure><img src="https://4216786002-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fd2uS6kuROSFKDrT5HC1U%2Fuploads%2FrBQa2bZnTCMhlOQqQSOa%2Fimage.png?alt=media&amp;token=954ded63-bbd0-4724-84fe-7ba6888ad11a" alt=""><figcaption></figcaption></figure>

### API permissions

To be able to get all the information that Konvu needs, you have to configure the correct permissions.

1. Go to "API permissions" in the side menu
2. Make sure the permissions include "Microsoft Graph": email, profile and User.Read
3. The "Other permissions granted" should include "Microsoft Graph: openid"

<figure><img src="https://4216786002-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fd2uS6kuROSFKDrT5HC1U%2Fuploads%2FaVIYwzDFVKvFxhND8I9P%2Fimage.png?alt=media&amp;token=1dbcc21b-25d7-46d1-81aa-81561dbc58fe" alt=""><figcaption></figcaption></figure>

### Share Client ID with and Secret

Send the client ID and secret created (through your password manager for instance) to the Konvu team that will complete the setup. We'll let you know when it's ready to test.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.konvu.com/konvu/administration/account-management/set-up-entra-id-as-an-identity-provider.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
