Giter VIP home page Giter VIP logo

Comments (4)

tplkn avatar tplkn commented on June 2, 2024

Note: when I login with Google auth the code is a0.mfa_required. Previous comment for email/password login

from auth0.android.

lbalmaceda avatar lbalmaceda commented on June 2, 2024

@tplkn this is being worked on here #146 soon you'll be able to complete the MFA OTP flow with this SDK.
The a0.mfa_required error applies for the legacy /ro endpoint AFAIK, but the current OIDC conformant one /oauth/token will return mfa_required and then to finish the MFA flow the process is quite different. If you're curious you can read more about it here. To use one or the other, you have the Auth0#setOIDCConformant(boolean) method. You'll definitely want to use true on that setting.
May I ask how are you doing the Google authentication? which method are you calling, etc.

from auth0.android.

tplkn avatar tplkn commented on June 2, 2024

OIDCConformant is true
The problem is
email/login => mfa_required
google => a0.mfa_required
I'm calling following code for google auth

 WebAuthProvider.init(auth0)
            .withConnection("google-oauth2")
            .withScope(Auth0Client.SCOPES)
            .start(...)

from auth0.android.

lbalmaceda avatar lbalmaceda commented on June 2, 2024
email/login => mfa_required

this is fine, just like I said it happens on the /oauth/token endpoint.

However when using the WebAuthProvider class, what you're launching is authentication via a Browser app which uses Lock web and redirects back to the app. The app receives a code and sends that along with the code_verifier to the /oauth/token endpoint to perform a code exchange and obtain the final tokens. I've just tried this with a google account, setting up MFA right in the browser using Authy on my phone, and after finishing the flow the tokens where received fine. I did not receive a a0.mfa_required error. Please check if you're changing something in between and don't hesitate to contact support to get more guidance on this https://support.auth0.com. I'll leave the issue open since the PR with the error_code fix is not yet merged.

from auth0.android.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.