Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide documentation on configuring an Azure AD OIDC application to work with Dex #1518

Closed
marians opened this issue Oct 14, 2022 · 4 comments
Assignees
Labels
needs/refinement Needs refinement in order to be actionable team/bigmac Team BigMac

Comments

@marians
Copy link
Member

marians commented Oct 14, 2022

A customer was looking for support to set up an Azure AD app for Dex. See Slack.

If we provide this info, the next question will be: which other (OIDC) identity providers should we offer this information for? In use are

  • Github
  • Keycloak
  • Okta
  • add more
@marians
Copy link
Member Author

marians commented Oct 14, 2022

Here is an Azure AD example application we have configured.

We find this app in https://portal.azure.com/ via Home > App Registrations > All applications

Overview

image

Authentication

image

The only thing to adjust here is the redirect URIs.

Certificates & secrets

image

There has to be at least one client secret configured.

Token configuration

To make sure that ID tokens contain the user's group memberships, the groups claim has to be configured. There is a dedicated "Add groups claim" button for this.

It is up to you to decide which options to select from "Select group types to include in Access, ID, and SAML tokens.", however it's likely that you want to include "Security groups".

image

API permisions

Also you have to have the Directory.Read.All permission. Click Add a permission > Microsoft Graph > Delegated permissions and enter Directory.Read.All into the filter input field. Select the only item found and add.

image

Then you should click the "Grant admin consent for ..." link.

image

This is how your permissions table should look like, roughly:

image

Open question

  • Is the offline_access permission required? If yes, how is it added?

@marians marians removed their assignment Nov 2, 2022
@anvddriesch
Copy link

Note: dex-operator supports azure now.
We can also add configuration to it to manage azure ad oidc applications for dex automatically.

@gawertm gawertm added needs/refinement Needs refinement in order to be actionable and removed team/rainbow manuel labels Jun 13, 2023
@mogottsch
Copy link

As we plan to make customers use dex-operator instead of configuring dex connectors themselves, we should probably provide documentation for customers on how to configure Azure AD in dex-operator.

@mogottsch
Copy link

We decided not to add documentation on how to configure Azure AD for dex, as dex-operator will automate most of these steps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs/refinement Needs refinement in order to be actionable team/bigmac Team BigMac
Projects
None yet
Development

No branches or pull requests

6 participants