# Username-password authentication not working

**URL:** <https://community.auth0.com/t/username-password-authentication-not-working/40591>\
**Category:** Get Help\
**Tags:** lock, auth0\
**Created:** [April 6, 2020, 5:06pm UTC](https://community.auth0.com/t/username-password-authentication-not-working/40591 "2020-04-06T17:06:01Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![lgenzelis](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lgenzelis/32/20234_2.png) [@lgenzelis](https://community.auth0.com/u/lgenzelis)\
**Post date:** [April 6, 2020, 5:06pm UTC](https://community.auth0.com/t/username-password-authentication-not-working/40591/1 "2020-04-06T17:06:01Z")

</div>

Whenever I try to login using a social IdP (google, facebook, …) things work as expected. But, if I just create an user and try to login with his username and password, I get the error:

`access_denied: Password login via OIDC-conformant clients with externally-hosted login pages is unsupported. Alternatively, login could have been initiated from the wrong place (e.g., a bookmark).`

 ![Screen Shot 2020-04-06 at 14.03.56](https://global.discourse-cdn.com/auth0/original/3X/e/2/e2d8cbeb37af0c262a6715334df526ee1bcd5924.png)

 ![Screen Shot 2020-04-06 at 14.04.30](https://global.discourse-cdn.com/auth0/original/3X/4/7/47df4a567051afdc550670be89a98a8ca5b65a2d.png)

(added screenshots for clarity)

This is driving me crazy. I’ve just created a new tenant to check if the error is due to something I touched, but no, it’s still happening with the default configuration. I googled it and found some results, but none of them helped me.

---

<div class="post-metadata">

**Author:** ![kirankbee](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kirankbee/32/13267_2.png) [@kirankbee](https://community.auth0.com/u/kirankbee)\
**Post date:** [April 6, 2020, 11:32pm UTC](https://community.auth0.com/t/username-password-authentication-not-working/40591/2 "2020-04-06T23:32:04Z")

</div>

You need add the App bundle URI in the application settings for callback and logout both.  
for ex : if  
:///ios//callback

repeat the same comma seperated with android , all you need to do is to replace ios with android.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [April 7, 2020, 8:27am UTC](https://community.auth0.com/t/username-password-authentication-not-working/40591/3 "2020-04-07T08:27:29Z")

</div>

Thanks a lot @kirankbee for sharing that knowledge here!

---

<div class="post-metadata">

**Author:** ![lgenzelis](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lgenzelis/32/20234_2.png) [@lgenzelis](https://community.auth0.com/u/lgenzelis)\
**Post date:** [April 7, 2020, 2:10pm UTC](https://community.auth0.com/t/username-password-authentication-not-working/40591/4 "2020-04-07T14:10:22Z")

</div>

Thanks @kirankbee! I ended up rewriting my code using the official `react-native-auth0` library, and following the Application Quick Start tutorial, and didn’t experience the issue anymore.  
Therefore I can’t really confirm that your solution actually works, but thanks anyway.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [April 7, 2020, 3:03pm UTC](https://community.auth0.com/t/username-password-authentication-not-working/40591/5 "2020-04-07T15:03:57Z")

</div>

Glad it’s working for you now @lgenzelis!

---

<div class="post-metadata">

**Author:** ![kirankbee](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kirankbee/32/13267_2.png) [@kirankbee](https://community.auth0.com/u/kirankbee)\
**Post date:** [April 7, 2020, 6:13pm UTC](https://community.auth0.com/t/username-password-authentication-not-working/40591/6 "2020-04-07T18:13:18Z")

</div>

thanks @lgenzelis i am able to login /logout , but still have some other challenges of call back when actually embedded into my RN mobile app, can you help provide any guidance? i am getting error like " Safari can’t open the link"…

---

<div class="post-metadata">

**Author:** ![lgenzelis](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lgenzelis/32/20234_2.png) [@lgenzelis](https://community.auth0.com/u/lgenzelis)\
**Post date:** [April 7, 2020, 11:20pm UTC](https://community.auth0.com/t/username-password-authentication-not-working/40591/7 "2020-04-07T23:20:17Z")

</div>

@kirankbee, just go to the Dashboard, then to Applications → YourApplication → Quick Start. Follow that guide. It worked for me.

---

<div class="post-metadata">

**Author:** ![kirankbee](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kirankbee/32/13267_2.png) [@kirankbee](https://community.auth0.com/u/kirankbee)\
**Post date:** [April 7, 2020, 11:27pm UTC](https://community.auth0.com/t/username-password-authentication-not-working/40591/8 "2020-04-07T23:27:23Z")

</div>

@igeshosk that works for me too, with little changes to the URI bundle, but when i embed the auth page into my mobile App i can get through beyond login?as it throws the error i mentioned before.

---

<div class="post-metadata">

**Author:** ![lgenzelis](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lgenzelis/32/20234_2.png) [@lgenzelis](https://community.auth0.com/u/lgenzelis)\
**Post date:** [April 9, 2020, 1:12am UTC](https://community.auth0.com/t/username-password-authentication-not-working/40591/9 "2020-04-09T01:12:15Z")

</div>

You can try download the demo version from the quickstart section (instead of implementing it yourself) and see if it works for you. It should work out of the box. Then, you can compare it with what you are doing and try to find the problem. Hope it works.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [April 9, 2020, 8:19am UTC](https://community.auth0.com/t/username-password-authentication-not-working/40591/10 "2020-04-09T08:19:43Z")

</div>

Yep and after that let us know if you still have some obstacles!

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [April 22, 2020, 10:43am UTC](https://community.auth0.com/t/username-password-authentication-not-working/40591/12 "2020-04-22T10:43:58Z")

</div>

The previous reply was deleted because of the SPAM reasons.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [May 7, 2020, 10:44am UTC](https://community.auth0.com/t/username-password-authentication-not-working/40591/13 "2020-05-07T10:44:02Z")

</div>

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