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

Dex Microsoft connector gives me "Unregistered redirect_uri ("/oauth2/callback")." #2766

Closed
4 of 7 tasks
JCoupalK opened this issue Jun 25, 2024 · 3 comments · Fixed by #2815
Closed
4 of 7 tasks

Dex Microsoft connector gives me "Unregistered redirect_uri ("/oauth2/callback")." #2766

JCoupalK opened this issue Jun 25, 2024 · 3 comments · Fixed by #2815

Comments

@JCoupalK
Copy link

Validation Checklist

Version

master

Describe your issue

I configured the Dex config-map.yaml to use the Microsoft connector following those instructions:
https://dexidp.io/docs/connectors/microsoft/

Applied and restarted the deployments.

And when I clicked Login with Microsoft I got this:
image

I tried to modify the config but anything I tried seemed to result in this Bad request.

Not sure if that's purely a Dex issue or the way it is in Kubeflow.

I expected to be able to login with my Microsoft Azure AD account and access the dashboard.

Anything else you would like to add:
My current (censored) config-maps.yaml at ./manifests/common/dex/base/config-map.yaml

apiVersion: v1
kind: ConfigMap
metadata:
  name: dex
data:
  config.yaml: |
    issuer: http://dex.auth.svc.cluster.local:5556/dex
    storage:
      type: kubernetes
      config:
        inCluster: true
    web:
      http: 0.0.0.0:5556
    logger:
      level: "debug"
      format: text
    oauth2:
      skipApprovalScreen: true
    staticClients:
    # https://github.com/dexidp/dex/pull/1664
    - idEnv: OIDC_CLIENT_ID
      redirectURIs: ["/authservice/oidc/callback"]
      name: 'Dex Login Application'
      secretEnv: OIDC_CLIENT_SECRET
    connectors:
      - type: microsoft
        id: microsoft
        name: Microsoft
        config:
          clientID: client-id-here
          clientSecret: secret-here
          redirectURI: https://external.domain.com/dex/callback
          tenant: organizations
          emailToLowercase: true

Environment:

  • Kubeflow version: 1.8.0
  • Kubernetes platform: K3S
  • Kubernetes version: 1.26.15
  • OS: Ubuntu 22.04 LTS
  • The istio gateway is also behind an external nginx reverse proxy

Steps to reproduce the issue

I configured the Dex config-map.yaml to use the Microsoft connector following those instructions:
https://dexidp.io/docs/connectors/microsoft/

Applied and restarted the deployments.

And when I clicked Login with Microsoft I got this:
image

Put here any screenshots or videos (optional)

image

My (censored) Azure app:
image
image
image

@juliusvonkohout
Copy link
Member

I see conflicting Inforamation. Are you using "Kubeflow version: 1.8.0" or "Version master". Please test against the 1.9 release or the master branch. Kubeflow 1.8 and 1.8.1 are EOL soon.

@JCoupalK
Copy link
Author

This issue was opened before 1.9 release but I'll check out if 1.9 fixes my issue

@juliusvonkohout
Copy link
Member

Please check whether this is related to #2815

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

Successfully merging a pull request may close this issue.

2 participants