-
Notifications
You must be signed in to change notification settings - Fork 564
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
Okta not remembering the device, causing infinite loop #714
Comments
On further experimentation, there is another issue - but this one happens when the Okta push needs to be activated again (after 24h in my case). When that happens, the code path in the The response received here explicitly clears the sesion cookie in the cookie jar, which then causes an infinite loop again. In my workaround, I just replaced the call to
|
I'm not sure if it's the same bug, but I have Okta+Duo and if Duo part of the flow, but not required because of Okta policy, it looks like |
Yeah I have also run into this now, @resnikb great work debugging it I will try your fix and see how it works. |
Hi,
I use Okta with Okta push. When I have sessions enabled, the first call goes through the whole workflow and saves the session cookie. However, the next call causes saml2aws to hang, in an infinite loop. Using
--verbose
parameter shows that it is continuously cycling throughauthWithSession
->follow
->Authenticate
->authWithSession
...I debugged the application, and the main issue seems to be that the call to
verifyMfa
passesrememberDevice
property only in the body of the request - however, according to Okta documentation, this should be a query parameter. The existing code works when the verification link in the Okta response containsrememberDevice
parameter. However, this was not always the case for me (I'm not sure why).I have verified this by modifying the
oktaVerify
codegetMfaChallengeContext
method to doAfter this change, the device is remembered and the infinite loop doesn't happen.
I'm happy to submit a PR with the above change - but please be warned that I'm a complete Go newbie.
The text was updated successfully, but these errors were encountered: