-
Notifications
You must be signed in to change notification settings - Fork 15
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
Could not get temporary credentials: generating SAML assertion: doing HTTP request: 401 Unauthorized #85
Comments
Hey @roarklebork, I assume you are using OneLogin. One OTP token can only be used once. So before requesting new credentials wait until the app shows a different token than the one that was used with the previous request. |
Hi, Thanks so much for the super fast response. I probably should have mentioned that I am using Onelogin and instead of the OTP im using Verify Factor. After receiving that error if i wait 15 minutes or so minutes(I assume the verify token expires) I receive the following:
Thanks |
Okay, I'm not sure I understand your setup/what you mean with:
Can you elaborate more on your OneLogin setup? Also what are the Clisso app names (AWS profile names) you are using for the first run? Can you post your clisso.yaml (secrets, etc. redacted!) |
Hey, So I am using the onelogin protect app for Android. so after I type in my password it sends a push notification to my phone instead of entering the OTP Manually. The following is the config. The first run would be
|
So I wasn't wrong with my initial assumption.
if between running 1. and 2. the token on your OTP device has not changed (even if you don't enter it but use push) you will get a To verify can you do the following:
|
Hi, I did exactly as requested and received the following: When I first tried troubleshooting this I even waited around 30 minutes and still ran into the same issue. There is an amount of time that I can wait before getting a different app. I am not sure what it is but I am assuming its around the time the key expires? |
This has periodically come up for me as well, and waiting for a new token hasn't been the issue. |
@roarklebork can you see if my fork corrects this issue for you? https://github.com/edlitmus/clisso I updated to the OneLogin v2 API and I believe that fixes the issue for me. |
Hello,
in my setup I have many different AWS accounts and each account has many roles. I am running into this issue with version 0.7.0 where if I get a credential from one account it works but if I try to get a credential from a different account right after I receive the error
Could not get temporary credentials: generating SAML assertion: doing HTTP request: 401 Unauthorized
It seems that if i delete the credential from my aws config as well as remove the clisso config and set it up again I am able to generate the other credential. It seems it can only be one at a time for some reason.
Thanks!
The text was updated successfully, but these errors were encountered: