-
Notifications
You must be signed in to change notification settings - Fork 81
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
MFA authentication with sessionToken broken #285
Comments
Hi @programmarchy, Thanks for your question! I'm going to assign this to someone on our team who can help with this library. |
Internal ref: OKTA-385140 |
@laura-rodriguez I have some additional information that may be helpful. Here's where the error is created: |
@laura-rodriguez Another update -- If I delete my app-level MFA sign on rule, and leave only the org-level sign on rule, then things work as expected. |
@programmarchy What is defined in |
@oleggnidets-okta I'm pretty sure I had set "Google Authenticator" to "Required" for enrollment, but I actually can't double check that currently because I managed to lock out all of my users (including admin) during testing. |
Never mind, I can reproduce the issue. Now I should bring up and discuss this issue to our team. |
Hi @programmarchy @bdruth, Indeed, there's no way to intercept MFA challenge when you exchange The solution is deleting app-level MFA sign-on rule and leave only the Org-level sign-on rule. |
@oleggnidets-okta Thanks. It would be helpful if the Okta documentation clearly explained this, and it seems like the Okta admin interface should disable or at least present the user a warning when adding an app-level MFA rule for OIDC providers. |
@programmarchy I'm facing a similar issue. I don't see I've any app-level rule added, but I might be wrong. Can you help me understand how to add an org-level rule and remove any app-level rules? Thanks. |
It does not seem possible to authenticate with MFA using
okta-auth-swift
andokta-oidc-ios
.I'm able to get a
sessionToken
after successfully verifying MFA with a passcode (using Google Authenticator), but then the subsequent call toOktaOidc.authenticate(withSessionToken:)
fails with the following error:To replicate these steps:
https://github.com/okta/samples-ios/tree/master/custom-sign-in
stateManager
isnil
and error is set to message above.I have the following settings configured:
The text was updated successfully, but these errors were encountered: