Skip to content
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

Can't log in with duo mobile app using device trust #260

Open
seqmbuehl opened this issue Dec 4, 2020 · 0 comments
Open

Can't log in with duo mobile app using device trust #260

seqmbuehl opened this issue Dec 4, 2020 · 0 comments

Comments

@seqmbuehl
Copy link

seqmbuehl commented Dec 4, 2020

Hi team,

I am using oktaOidc.signInWithBrowser(...). We integrate with duo for MFA and device trust. duo.

With device trust disabled, I can log in by choosing duo push or passcode. All good.

With device trust enabled

  1. I get passed the okta login screen
  2. I get challenged. I have to open the duo mobile app.
  3. Duo mobile opens
  4. I tap on the upper left corner to return to my app
  5. I get redirected to the okta login screen instead of showing the duo MFA options (push, passcode).

I don't see any traces in the duo logs.

Console shows this error:
[connection] nw_read_request_report [C2] Receive failed with error "Software caused connection abort".

I think it may be related with an http request while the app is in the background.
I get the same error and behavior when I force SFSafariViewController in OKTExternalUserAgentIOS.m

I am currently forcing mobile Safari in OKTExternalUserAgentIOS.m. I get passed the duo mobile app and the duo MFA. I end up back in my app with this type of custom scheme request:
{custom scheme}://{loginRedirectUrl}?code=1234abc&state=1234abc
Will try to request the tokens outside of the oidc framework.

We have an older ios app that uses the wkwebview for the okta login flow. It just points the wkwebview to domain.okta.com without any sdk. In this case the duo mobile app redirects me back to the app and I am logged in. Same is true using ios Safari.

okta-2-sml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant