Giter VIP home page Giter VIP logo

Comments (10)

rojinsafavi avatar rojinsafavi commented on August 11, 2024 2

Any updates?

from tkg-lab.

jaimegag avatar jaimegag commented on August 11, 2024

The initial token generated by Dex expires after 3 hours (we set it to 180 minutes in the Dex ConfigMap). After that we try to leverage the refresh-token against the IdP (Okta in this case, unless you used something else).

I will try to test and simulate asap to confirm, but it could be that we didn't enable Refresh Token grant type on the Okta side if you followed our instructions.
To try to fix that, in the Okta UI: Applications > (Select you App) > General Settings > Allowed grant types > Check the "Refresh Token" checkbox
Hopefully that may fix it.

from tkg-lab.

GuillaumeMorini avatar GuillaumeMorini commented on August 11, 2024

It is stil not working even after enabling the Refresh token in Okta.
I have the following logs in dex:

{"level":"info","msg":"login successful: connector \"oidc\", username=\"Alana Smith\", preferred_username=\"\", email=\"[email protected]\", groups=[\"Everyone\" \"platform-team\"]","time":"2020-07-09T11:42:47Z"}
{"level":"info","msg":"login successful: connector \"oidc\", username=\"Concourse CI\", preferred_username=\"\", email=\"[email protected]\", groups=[\"Everyone\" \"platform-team\"]","time":"2020-07-09T11:43:32Z"}
{"level":"info","msg":"keys expired, rotating","time":"2020-07-09T14:45:10Z"}
{"level":"info","msg":"keys rotated, next rotation: 2020-07-09 20:45:11.152452028 +0000 UTC","time":"2020-07-09T14:45:11Z"}
{"level":"error","msg":"failed to refresh identity: oidc: failed to get refresh token: oauth2: token expired and refresh token is not set","time":"2020-07-09T16:09:21Z"}
{"level":"error","msg":"failed to refresh identity: oidc: failed to get refresh token: oauth2: token expired and refresh token is not set","time":"2020-07-09T16:09:21Z"}
{"level":"error","msg":"failed to refresh identity: oidc: failed to get refresh token: oauth2: token expired and refresh token is not set","time":"2020-07-09T16:09:21Z"}

from tkg-lab.

GuillaumeMorini avatar GuillaumeMorini commented on August 11, 2024

Hello @jaimegag ,

Did you had a chance to test it, because it is still not working and require me a refresh each time and when I integrate with Concourse or GitLab it is a real pain in the ... to rotate the certificates each time ?

Thanks for your help and the awesome work

Guillaume

from tkg-lab.

jaimegag avatar jaimegag commented on August 11, 2024

Hi @GuillaumeMorini . I did test it further and got to the same situation you are at. Just reached out to the engineering team in charge of the TKG extensions to se iff they can help troubleshooting. I'm not convinced this is an Okta issue anymore.
I'll keep you posted

from tkg-lab.

srwaggon avatar srwaggon commented on August 11, 2024

I've also encountered this issue as described by previous participants and will be subscribing for updates.
Similarly, ensuring that refresh tokens are enabled from the application in Okta did not resolve my issue.

from tkg-lab.

zjarjoura-wish avatar zjarjoura-wish commented on August 11, 2024

did anyone ever figure this out?

from tkg-lab.

jaimegag avatar jaimegag commented on August 11, 2024

Sorry for the silence in this issue.
There are some changes in the authentication workflow that will make this issue not applicable anymore. We are working on some changes that should be ready in a few weeks time. I'll be able to validate & confirm better then.
Thanks for your patience!

from tkg-lab.

zjarjoura-wish avatar zjarjoura-wish commented on August 11, 2024

Ah I see, I thought maybe someone had found a fix for Dex since I think this an issue on the Dex side with how it talks to Okta. Thanks anyway!

from tkg-lab.

jaimegag avatar jaimegag commented on August 11, 2024

Closing this issue as it's outdated and not aligned with current version of the Product that leverages Pinniped to issue the tokens that are used by the client.
Let's open a new issue if we can reproduce the a similar problem with TKG 1.4. I haven't been able to do so myself

from tkg-lab.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.