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

ArgoCD CLI refresh-token does not regenerate new access token when it expire. #19051

Open
3 tasks done
GeorgiDimv opened this issue Jul 15, 2024 · 0 comments
Open
3 tasks done
Labels
bug Something isn't working component:cli Affects the Argo CD CLI type:bug

Comments

@GeorgiDimv
Copy link

GeorgiDimv commented Jul 15, 2024

Checklist:

  • I've searched in the docs and FAQ for my answer: https://bit.ly/argocd-faq.
  • I've included steps to reproduce the bug.
  • I've pasted the output of argocd version.

Describe the bug

ArgoCD cli returns following error after access token expire, and refresh token does not regenerate new one:

FATA[0001] oauth2: "invalid_grant" "Refresh token is invalid or expired."

To Reproduce

Configure OIDC for ArgoCD

create ArgoCD config file or use the default, default is in "~/.argocd/config". It should look like:

contexts:
- name: <ARGOCD_SERVER_URL>
  server: <ARGOCD_SERVER_URL>
  user: <ARGOCD_SERVER_URL>
current-context: <ARGOCD_SERVER_URL>
servers:
- grpc-web-root-path: ""
  server: <ARGOCD_SERVER_URL>
users:
- auth-token: <ID_TOKEN_FROM_CURL>
  name: <ARGOCD_SERVER_URL>
  refresh-token: <REFRESH_TOKEN_FROM_CURL>

argocd --config ~/PATH/TO/CONFIG app list

Expected behavior

To list apps

Version
v2.10.9

@GeorgiDimv GeorgiDimv added the bug Something isn't working label Jul 15, 2024
@alexmt alexmt added component:cli Affects the Argo CD CLI type:bug labels Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working component:cli Affects the Argo CD CLI type:bug
Projects
None yet
Development

No branches or pull requests

2 participants