Comments (4)
Note: when I login with Google auth the code is a0.mfa_required
. Previous comment for email/password login
from auth0.android.
@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.
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.
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)
- NullPointException in OAuthManager HOT 2
- Force login with login prompt HOT 1
- Revoke Refresh Token on Logout HOT 2
- Possible memory leak during authentication HOT 2
- Credentials are not refreshed properly HOT 5
- Parsing user_metadata throw exception HOT 3
- Option to pass headerInfo: Map<String, String> as a parameter for getCredentials method of CredentialsManager & addHeader for reneweAuth request HOT 2
- Change Password (User) HOT 7
- Incorrect example documentation
- Cookie not cleared after logout HOT 1
- Crash when calling loginWithBrowser with targetSdk 34 in build.gradle HOT 7
- UnsupportedOperationException thrown on Chromebooks
- Add Incognito Custom Tab (Ephemeral Session) support to Android Auth0 SDK
- Crash issue in SecureCredentialsManager HOT 6
- In AuthenticationActivity intent flag CLEAR_TOP will close previous Activities with Launcher set to `singleTask` HOT 1
- NullPointerException in WebAuthProvider
- rmsports HOT 1
- createUser func to support setting given_name and family_name HOT 1
- Refresh token does not use stored scope
- onResume is called after login from ULP before token is returned
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from auth0.android.