-
-
Notifications
You must be signed in to change notification settings - Fork 146
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
AWS Session Expiration Issue #220
Comments
Can this be linked to #108 ? |
@pethron yes it can. Actually the issue appeared last week for me after updating from 0.8.0 to 0.8.1 therefore I thought the issue is new. |
I have also been encountering this issue, thanks for flagging the issue and temporary workaround. Looking forward to a fix. |
First of all thank you very much to all developers for creating such wonderful tool and idea 💯. With my case, I upgraded today from 0.7.3 to 0.8.1 on my mac. All profiles showed up but none of them were connecting. When opened integrations menu, it was showing 3 days and online opposed to 8 hours. So tried to log off and then logged back in as temporary workaround. It started showing 8 hours and online. But when was trying to activate any session, it was showing error with Region. Tried multiple attempts but it is now not allowing me to activate any session. I had followed up this and current 220 issue very recently, like couple of days before. I deleted all entries from keychain. After logout it shows "Cleaning configuration file" and then restarts but still not able to login. But I am not able to now open any session at all. Not sure if I should create different issue as this is mixture of both. |
@Jay1305 Thank you so much for the appreciation to the project! At least you can try to delete the |
Hey @andreacavagna01! Thanks for your reply. I had tried literally everything (deleted leapp-lock, removed from keychain, Thanks again :) Edit - |
This may have been something on the AWS side - we'd been seeing this with 0.8.1 for at least 2 weeks and then its suddenly stopped and the integration options no longer show that 7 day expiration period. |
Absolutely. We save the expiration code time directly from AWS SSO OIDC sdk. But the token is valid only for 8 hours |
I can confirm it too. The aws-sdk/clients/ssooidc's createToken method returned a token valid for 7 days (no Leapp overhead). We tried to force a previous version of the AWS SDK, but it still wasn't working. Now it seems to work as expected, returning a token valid for 8 hours. |
So, the behavior changed for me. Now I am getting 8 hours (as expected) for session duration. After the 8 hours a new token is generated. For me, the app is now working as expected. |
Yes @BPCS-wit, it was not related to Leapp itself but to the AWS SSO createToken API response. I'm going to close the issue |
When using SSO to AWS over browser a session is created which is only to last 8 hours (setup within AWS). But the leapp app assuming 7 days. After 8 hours (when switching profiles) an invalid token message appears.
Only way to solve is to go to Integrations->Logout -> then Login again
Leapp Version
0.8.1.0
Expected behavior
Reopen the browser SSO dialog to refresh the token
Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: