OIDC login #8980
Replies: 2 comments 4 replies
-
I'm having trouble with this too, with oauth2-proxy and kubernetes-dashboard 7.x. Once I log in to my OIDC provider and it redirects me back to kubernetes-dashboard, it shows the default login screen asking for a bearer token in an HTML form. I can see an authorization header that contains a bearer token, as well as an x-auth-request-email header containing my email address, in the response headers. What do I need to do to get OIDC working with the dashboard? |
Beta Was this translation helpful? Give feedback.
-
I dont have a ready example available. Do I then enable kong or not (still dont really get why it is needed) and with service I should use as the upstream? |
Beta Was this translation helpful? Give feedback.
-
HI
For v6 of kubernetes dashboard, we have a oauth2-proxy in front of the applicaties.
The proxy makes sure the user has logged in en passes the bearer token to the request to kubernetes dashboard application.
https://github.com/kubernetes/dashboard/blob/master/docs/user/access-control/README.md#authorization-header
We have tried to upgrade to v7, but many things have changed.
No matter what we do, we only get the default login screen.
we have tried:
with kong disabled.
point oauth2-proxy upstream to kubernetes-dashboard-web service.
with kong enabled:
point oauth2-proxy upgrade to kubernetes-dashboard-web service.
point oauth2-proxy upgrade to kong-proxy service.
The login flow still work, but the upstream only show the k8s login.
I did now see
Auth container
Authentication logic is now handled by the new dashboard auth container. Currently, it only exposes /login endpoint. We will also add support for OIDC with OAuth flow and /me endpoint in the future.
Added csrf-key argument - Base64 encoded random 256 bytes key. Can be loaded from CSRF_KEY environment variable.
Does this mean oidc is not yet supported for dashboard v7?
Beta Was this translation helpful? Give feedback.
All reactions