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

Machine-to-machine authentication error Azure Entra ID #4012

Open
3 tasks done
marcelo-modolo opened this issue Feb 25, 2025 · 0 comments
Open
3 tasks done

Machine-to-machine authentication error Azure Entra ID #4012

marcelo-modolo opened this issue Feb 25, 2025 · 0 comments

Comments

@marcelo-modolo
Copy link

Preflight Checklist

  • I agree to follow the Code of Conduct that this project adheres to.
  • I have searched the issue tracker for an issue that matches the one I want to file, without success.
  • I am not looking for support or already pursued the available support channels without success.

Version

2.39.1

Storage Type

Postgres

Installation Type

Official Helm chart

Expected Behavior

Hi!
We read and followed the documentation for machine-to-machine authentication, but using Azure (Entra ID).
Below is the created configuration

- name: azure-entra-id
  type: oidc
  id: azure-entra-id
  config:
    issuer: https://sts.windows.net/{tenant_id}/
    issuerAlias: https://login.microsoftonline.com/{tenant_id}/
    scopes:
      - openid
      - profile
    userNameKey: sub
    getUserInfo: true

The connector is configured successfully!
{"level":"info","msg":"config connector: azure-entra-id","time":"2025-02-25T14:02:58Z"}

Actual Behavior

Although the token generated in Azure is valid, we receive the following error when trying to authenticate
{"level":"error","msg":"failed to verify subject token: oidc: error loading userinfo: 400 Bad Request: ","time":"2025-02-21T22:56:31Z"}

{"level":"info","msg":"Dex Version: v2.39.1, Go Version: go1.22.2, Go OS/ARCH: linux amd64","time":"2025-02-25T14:02:58Z"}

Steps To Reproduce

No response

Additional Information

No response

Configuration

Logs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant