argo-cd icon indicating copy to clipboard operation
argo-cd copied to clipboard

Failed to get token when using OIDC

Open Hronom opened this issue 1 year ago • 3 comments

Describe the bug If you try to login through OIDC provider, sometimes we getting error like this:

failed to get token: Post "https://oauth.id.jumpcloud.com/oauth2/token": EOF

image

if we try to refresh page we get:

data length is less than nonce size

image

However if we do login again through OIDC provider - then issue disappear and everything works.

Version

{
    "Version": "v2.8.2+dbdfc71",
    "BuildDate": "2023-08-24T20:05:39Z",
    "GitCommit": "dbdfc712702ce2f781910a795d2e5385a4f5a0f9",
    "GitTreeState": "clean",
    "GoVersion": "go1.20.6",
    "Compiler": "gc",
    "Platform": "linux/amd64",
    "KustomizeVersion": "v5.1.0 2023-06-19T16:58:18Z",
    "HelmVersion": "v3.12.1+gf32a527",
    "KubectlVersion": "v0.24.2",
    "JsonnetVersion": "v0.20.0"
}

Hronom avatar Aug 30 '23 15:08 Hronom

Any luck with this @Hronom? Getting a similar error in a local setup with Keycloak.

JamesB41 avatar Oct 11 '23 16:10 JamesB41

No luck, issue still here v2.8.2

Hronom avatar Oct 11 '23 22:10 Hronom

Issue still present in latest version. It's annoying.

{
    "Version": "v2.10.2+fcf5d8c",
    "BuildDate": "2024-03-01T21:24:51Z",
    "GitCommit": "fcf5d8c2381b68ab1621b90be63913b12cca2eb7",
    "GitTreeState": "clean",
    "GoVersion": "go1.21.3",
    "Compiler": "gc",
    "Platform": "linux/amd64",
    "KustomizeVersion": "v5.2.1 2023-10-19T20:13:51Z",
    "HelmVersion": "v3.14.2+gc309b6f",
    "KubectlVersion": "v0.26.11",
    "JsonnetVersion": "v0.20.0"
}

Maintainers, can you check it? Or any ideas what it can be?

cc @crenshaw-dev

Hronom avatar Mar 06 '24 01:03 Hronom