Hi all, I’m having issues with the javascript/web based Okta sign-in widget on ipads when MFA is enabled. My app requires that the user re-authenticate with MFA per session, so I have that rule enabled in my app.
I added the prompt parameter in the OktaSignIn constructor and it seems to work within the browser on windows, OSX, and Android devices. But somehow when used on an iOS device in any browser, I get an error
Error found on my Ipad:
“the current sign on policy requires this client to redirect for re-authentication for MFA. Please contact your administrator.”
Code Snippet:
const oktaSignIn = new OktaSignIn({
baseUrl: `https://${OKTA_ORG_URL}`,
redirectUri: REDIRECT_URI,
clientId: OKTA_CLIENT_ID,
authParams: {
issuer: `https://${OKTA_ORG_URL}/oauth2/default`
},
prompt: "login" // * this seems to make MFA work
});
function loggedInHandler(user){
//......logged in logic
}
function authFailureHandler(error){
oktaSignIn.showSignInToGetTokens({
el: '#okta-login-container'
}).then(function(tokens) {
oktaSignIn.authClient.tokenManager.setTokens(tokens);
oktaSignIn.remove();
const idToken = tokens.idToken;
window.location.replace(HOME_URI)
}).catch(function(err) {
console.error(err);
});
}
oktaSignIn.authClient.token.getUserInfo().then(loggedInHandler, authFailureHandler);

Questions:
- How do your properly configure MFA within the sign-in widget.
- Is MFA in the widget supported on Ipads in firefox/chrome
- Has anyone seen good samples for this
Any help on this would be greatly appreciated. Thank you!
