kubeflow / manifests

A repository for Kustomize manifests
Apache License 2.0
798 stars 864 forks source link

Dex Bad request for custom user #2812

Closed tzabbi closed 1 month ago

tzabbi commented 1 month ago

Validation Checklist

Version

1.9

Describe your issue

Custom user in kubeflow is unable to login because of redirection error:

Bad request: Unregistered redirect_uri ("/oauth2/callback"). image

I patched configmap and secret of dex with credentials for new user and this happens.

Steps to reproduce the issue

Patch "/common/dex/base/config-map.yaml" and "/common/dex/base/dex-passwords.yaml".

Put here any screenshots or videos (optional)

No response

kromanow94 commented 1 month ago

As described in this comment, https://github.com/kubeflow/manifests/pull/2815#issuecomment-2247287964, this is probably related to the Kubeflow Instance installation using the dex definition from common/dex/base (or common/dex/overlays/istio) instead of the dex/overlays/oauth2-proxy as in the example/kustomization.yaml.