# Not able to sign up using email and password for embedded login for Android Mobile SDK

**URL:** <https://community.auth0.com/t/not-able-to-sign-up-using-email-and-password-for-embedded-login-for-android-mobile-sdk/84375>\
**Category:** Get Help\
**Tags:** login, lock, auth0\
**Created:** [June 1, 2022, 8:38am UTC](https://community.auth0.com/t/not-able-to-sign-up-using-email-and-password-for-embedded-login-for-android-mobile-sdk/84375 "2022-06-01T08:38:30Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![ruchidhore93](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ruchidhore93/32/33698_2.png) [@ruchidhore93](https://community.auth0.com/u/ruchidhore93)\
**Post date:** [June 1, 2022, 8:38am UTC](https://community.auth0.com/t/not-able-to-sign-up-using-email-and-password-for-embedded-login-for-android-mobile-sdk/84375/1 "2022-06-01T08:38:30Z")

</div>

Please include the following information in your post:

- Which SDK this is regarding:  
minSdkVersion 21  
targetSdkVersion 32

- Platform Version:  
Android Studio Chipmunk | 2021.2.1 Patch 1

- Code Snippets/Error Messages/Supporting Details/Screenshots:  
We created a sample embedded login page using the repo auth0/Lock.Android. When signing up, if we use the option “Sign up with Google”, it allows to create the user and the same user reflects on user management users section as well. However, if we try to sign up using username and password, it gives the error “There was an error processing the sign in” at the very top.  

**Is this a feature request or bug report?** If so, please create an issue directly in the corresponding GitHub repo. The Community SDK category is for general discussion and support.  
[Sign in to GitHub · GitHub](https://github.com/auth0/Lock.Android/issues/new/choose) DOES NOT LET YOU CREATE ISSUE IN GITHUB REPO, IT DIRECTS OVER HERE.

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [June 2, 2022, 7:57pm UTC](https://community.auth0.com/t/not-able-to-sign-up-using-email-and-password-for-embedded-login-for-android-mobile-sdk/84375/3 "2022-06-02T19:57:23Z")

</div>

Hi there @ruchidhore93 welcome to the community!

Thanks for the detailed description and screenshot as well 😄 I believe this might be happening due to an incorrect (or nonexistent) redirect/callback url. I noticed in the [readme](https://github.com/auth0/Lock.Android#usage) we have instructions to add  
`https://{YOUR_AUTH0_DOMAIN}/android/{YOUR_APP_PACKAGE_NAME}/callback` as a redirect url in the application settings in Auth0. However, we also have the scheme defined as `demo` in the sample app - With this, the redirect url should look like `demo://{YOUR_AUTH0_DOMAIN}/android/com.auth0.android.lock.app/callback` instead. Are you able test with this and let us know?

> [@ruchidhore93](#):
>
> DOES NOT LET YOU CREATE ISSUE IN GITHUB REPO, IT DIRECTS OVER HERE.

I imagine this is due to the fact that we encourage the use of [Auth0.Android](https://github.com/auth0/Auth0.Android) and Universal Login in general - Please see [this article](https://auth0.com/docs/get-started/authentication-and-authorization-flow/mobile-device-login-flow-best-practices) on native vs. browser based approaches.

Hope this helps!

---

<div class="post-metadata">

**Author:** ![kpritam](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kpritam/32/37798_2.png) [@kpritam](https://community.auth0.com/u/kpritam)\
**Post date:** [June 3, 2022, 6:00am UTC](https://community.auth0.com/t/not-able-to-sign-up-using-email-and-password-for-embedded-login-for-android-mobile-sdk/84375/4 "2022-06-03T06:00:42Z")

</div>

We might use universal login in long term but at the moment ux is not accepted i.e. it opens up webview.  
We want our application to have native experience, hence we are exploring native login using Android.Lock. While trying to implement that, we started noticing that, Android.Lock does not support MFA for signup but it does support MFA at the time of login. We also looked at Android.Lock code base and we do not see corresponding logic to display MFA setup screen on sign up. We wanted to confirm with auth0 that, auth0 does not support MFA with native login using Android.Lock? If it does support, then is there anything that we are missing?

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [June 3, 2022, 11:00pm UTC](https://community.auth0.com/t/not-able-to-sign-up-using-email-and-password-for-embedded-login-for-android-mobile-sdk/84375/5 "2022-06-03T23:00:27Z")

</div>

> [@kpritam](#):
>
> We might use universal login in long term but at the moment ux is not accepted i.e. it opens up webview.

Gotcha! Thanks for clarifying 🙂

> [@kpritam](#):
>
> We also looked at Android.Lock code base and we do not see corresponding logic to display MFA setup screen on sign up. We wanted to confirm with auth0 that, auth0 does not support MFA with native login using Android.Lock? If it does support, then is there anything that we are missing?

Lock.Android does indeed support MFA - Please see this PR for details:

> <https://github.com/auth0/Lock.Android/pull/632>
>
> \### Changes
> 
> Whenever an \`mfa\_required\` error is received from the server, and… before showing the "MFA prompt" screen, the SDK will attempt to send an MFA challenge request to the registered OOB factor. If the user doesn't have any, the request will fail but the user will still be able to complete the authentication using the OTP generated from their favorite app.
> 
> This PR also bumps the dependencies and commits the line-endings setting so every IDE will pick up.
>  
> \### References
> 
> See \`SDK-2658\`.
> 
> Videos showing the usage
> 
> \#### MFA with SMS (OOB)
> https://user-images.githubusercontent.com/3900123/126327983-2d55c47b-b4ec-4aa0-ac0b-e42c8397e0de.mp4
> 
> \#### MFA with OTP (fallback, always available)
> https://user-images.githubusercontent.com/3900123/126328104-f9d842fb-b5a1-433d-9422-cb925984622e.mp4
> 
> \### Testing
> 
> Some tests regarding legacy use cases, those related to \`/oauth/ro\` MFA, were removed. Functionality is unaffected.
> 
> \- \[x\] This change adds unit test coverage
> 
> \- \[\] This change adds integration/UI test coverage
> 
> \- \[x\] This change has been tested on the latest version of the platform/language or why not
> 
> \### Checklist
> 
> \- \[x\] I have read the \[Auth0 general contribution guidelines\](https://github.com/auth0/open-source-template/blob/master/GENERAL-CONTRIBUTING.md)
> 
> \- \[x\] I have read the \[Auth0 Code of Conduct\](https://github.com/auth0/open-source-template/blob/master/CODE-OF-CONDUCT.md)
> 
> \- \[x\] All existing and new tests complete without errors
> 
> \- \[x\] The correct base branch is being used

---

<div class="post-metadata">

**Author:** ![kpritam](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kpritam/32/37798_2.png) [@kpritam](https://community.auth0.com/u/kpritam)\
**Post date:** [June 6, 2022, 5:49am UTC](https://community.auth0.com/t/not-able-to-sign-up-using-email-and-password-for-embedded-login-for-android-mobile-sdk/84375/6 "2022-06-06T05:49:53Z")

</div>

Hi @ty.frith , Yes. I went through that code but I did not find anything related to sign up. Code that you linked seems to be applicable to Login. And as we confirmed, login flow works fine. I can see 2FA screen for login workflow.  
Problem here is with sign up flow when 2FA is enabled. We do not see 2FA setup screen when we try to signup.

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [June 6, 2022, 8:44pm UTC](https://community.auth0.com/t/not-able-to-sign-up-using-email-and-password-for-embedded-login-for-android-mobile-sdk/84375/7 "2022-06-06T20:44:57Z")

</div>

Thanks for clarifying - I am not seeing anything specifically related to sign up either. In that case you’d most likely need to handle this part of the flow yourself, and/or create an [issue against the GH repo itself](https://github.com/auth0/Lock.Android/issues). I unfortunately do not have any samples to point at regarding how to implement 😕

---

<div class="post-metadata">

**Author:** ![kpritam](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kpritam/32/37798_2.png) [@kpritam](https://community.auth0.com/u/kpritam)\
**Post date:** [June 7, 2022, 6:02am UTC](https://community.auth0.com/t/not-able-to-sign-up-using-email-and-password-for-embedded-login-for-android-mobile-sdk/84375/8 "2022-06-07T06:02:43Z")

</div>

Hi @ty.frith , I dont think I have a access to open a issue at github repo. ☹

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [June 8, 2022, 12:25am UTC](https://community.auth0.com/t/not-able-to-sign-up-using-email-and-password-for-embedded-login-for-android-mobile-sdk/84375/9 "2022-06-08T00:25:24Z")

</div>

Right! Sorry I overlooked that from previously - I’ve reached out to the maintainers of the repo and will let you know, thanks for your patience! 🙇‍♂️

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [June 9, 2022, 12:11am UTC](https://community.auth0.com/t/not-able-to-sign-up-using-email-and-password-for-embedded-login-for-android-mobile-sdk/84375/11 "2022-06-09T00:11:12Z")

</div>

Hi there @kpritam! It looks like the issues section of the [Lock.Android](https://github.com/auth0/Lock.Android/issues) should be open again - Our apologies! Would you mind creating an issue for sign up with MFA there?

I’m going to go ahead and mark one of my previous posts as the solution to the original question.

Thanks!

---

<div class="post-metadata">

**Author:** ![kpritam](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kpritam/32/37798_2.png) [@kpritam](https://community.auth0.com/u/kpritam)\
**Post date:** [June 9, 2022, 5:51am UTC](https://community.auth0.com/t/not-able-to-sign-up-using-email-and-password-for-embedded-login-for-android-mobile-sdk/84375/12 "2022-06-09T05:51:44Z")

</div>

I have raised this issue here:

> <https://github.com/auth0/Lock.Android/issues/644>
>
> Steps to reproduce:
> 
> \- Enable one of the MFA option from auth0 dashboard
> \- Ru…n password grant flow via mobile
> \- Click on sign up option
> \- Enter username and password
> \- Click on sign up button
> 
> Expected:
> 
> \- Setup MFA screen should get displayed
> 
> Actual:
> 
> \- Error gets displayed \`THERE WAS AN ERROR PROCESSING THE SIGN IN\`
> 
> 
> Details explanation of the issue is available here: https://community.auth0.com/t/not-able-to-sign-up-using-email-and-password-for-embedded-login-for-android-mobile-sdk/84375

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [June 24, 2022, 5:51am UTC](https://community.auth0.com/t/not-able-to-sign-up-using-email-and-password-for-embedded-login-for-android-mobile-sdk/84375/13 "2022-06-24T05:51:50Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
