Comments (10)
Any updates?
from tkg-lab.
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.
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.
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.
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.
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.
did anyone ever figure this out?
from tkg-lab.
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.
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.
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)
- Upgrade Harbor Lab to 1.2
- Remove helm deploy option as it is no longer matching TKG 1.2 HOT 1
- Data Protection Still Needs Work
- tmc delete requires -m and -p options
- Dex fails with custom Okta endpoints with Let's Encrypt certificates
- Harbor OIDC login fails with custom Okta enpoint using Let's Encrypt certificate
- kubeapps to use tac.bitnami instead of charts.bitnami
- Runaway Contour App Changes
- Support Google CloudDNS via external-dns
- AWS Install references v1.1 method for cloudformation HOT 1
- Use FQDN and trusted CA for AVI Controller
- Add License instructions to AVI lab
- Add registry pull secrets for OSS software that pulls from dockerhub HOT 1
- Add ability to specify machine type per cluster type
- Deploys c5.xlarge for workload cluster even though I configured for something else HOT 1
- confirm if kubeapps is to be installed on SS or WL cluster HOT 1
- Minimal doc/readme update needed
- Add optional cluster autoscaler capability for shared services and workload clusters
- Contour fails to reconcile (step-by-step / management cluster / step 6) HOT 3
- Create overlay to support custom registry credentials.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tkg-lab.