-
-
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
While using SSO integrations in different regions starting a new session will fail with: "Session token not found or invalid" #360
Comments
Yes, please! Add the quick fix, and we will check it as soon as possible :) |
Thanks for your contribution and the kind words! |
This commit fixes the case when the region for AWS SSO changes and the client isn't aware, leading to the "Session token not found or invalid" error. It adds a check to see if the clients' region is different to the integration one and so recreate the client. Signed-off-by: Mauricio Wyler <[email protected]>
Will check this shortly and merge it to the codebase, sorry for the late response, and thanks again for the PR! 👍 |
Hi @urz9999! Any update on this? Do you need more info on my end? Thanks again! |
This commit fixes the case when the region for AWS SSO changes and the client isn't aware, leading to the "Session token not found or invalid" error. It adds a check to see if the clients' region is different to the integration one and so recreate the client. Signed-off-by: Mauricio Wyler <[email protected]> Signed-off-by: Mauricio Wyler <[email protected]>
We've merged @rusowyler PR and included it in the last v0.17.0 release. The PR solves this issue. |
Describe the bug
When you have 2 SSO integrations in different regions only sessions of the first integration you use will work. For the second integrations you will always get "Session token not found or invalid".
Leapp Version
Version 0.16.2 (0.16.2)
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The session should start successfully.
Desktop (please complete the following information):
Additional context
The problem is in
aws-sso-integration-service.ts
line 196. When we check if the client exists we don't check if the region changed. If it had, we then use a client with the incorrect region leading to the failure.Current code:
Proposed fix:
Happy to make a PR if need it! Thanks for the incredible app!
The text was updated successfully, but these errors were encountered: