-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Can't 'argocd login' with KeyCloak #10029
Comments
I'm a bit of an OIDC noob, but I believe the problem is that Keycloak expects the CLI to send a "client secret," which the client does not hold. I think that the CLI is a "public client" in the language of the Keycloak docs. Perhaps "public client" needs to be enabled on the Keycloak side. |
The fact that you can log in via the UI makes me second-guess myself though... |
We use keycloak + argocd and could never get the -sso to work because it requires launching a browser. In the end, we use keycloak to log into the argocd web UI, but in a pod at the command line we use the argocd admin user and password and not the keycloak-based login, like this:
where the password is the admin.password configured in the argocd-secret. The same secret typically has a key called |
@anthony-zawacki basically confirmed the ticket, we are experiencing the same. |
I'm also having the same problem, trying to get Keycloak to work with my setup but it dumps me back on the login screen. This is the configuration of how I deploy ArgoCD. |
Argocd CLI login currently requires a public client, because contrary to expectations the login is not proxied via the webinterface which would be able to hold a client secret. |
Related: #11025 |
Hi!
|
From the keycloak docs:
Set it to OFF |
Not working for me UI SSO access works just fine, only CLI is ❌ |
@nlucansk the URLs inside Keykloak client config shoud be adjusted. like this: #12124 (comment) |
We are using KeyCloak and I can login via web just fine.
But running
argocd login --insecure ${argocd_host} -sso
from console produces this log:The browser opens KeyCloak page prompting login + password, I enter them once and then get redirected to
http://localhost:8085/auth/callback?state=${some_short_hash}&session_state=${some_uid}&code=${two_uids_concatenated_with_dot}
which says:
The text was updated successfully, but these errors were encountered: