# Strange behavior after disabling Legacy Lock API switch

**URL:** <https://community.auth0.com/t/strange-behavior-after-disabling-legacy-lock-api-switch/9875>\
**Category:** Get Help\
**Tags:** deprecation, lock\
**Created:** [March 8, 2018, 2:43pm UTC](https://community.auth0.com/t/strange-behavior-after-disabling-legacy-lock-api-switch/9875 "2018-03-08T14:43:27Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![jgeerts](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jgeerts/32/7907_2.png) [@jgeerts](https://community.auth0.com/u/jgeerts)\
**Post date:** [March 8, 2018, 2:43pm UTC](https://community.auth0.com/t/strange-behavior-after-disabling-legacy-lock-api-switch/9875/1 "2018-03-08T14:43:27Z")

</div>

We use a customized hosted login page to do our authentication, to be prepared for the deprecation starting from the 1st of April we tried to enable the Legacy Lock API switch since we migrated to Lock v11.3.

When I enable that switch I get the most strange behavior, none of the authentications work anymore I always get the message “Wrong username or password”. What is even more stranger is that when I do a sign up I can fill out the form, in the dashboard everything seems fine but the view goes from the signup form directly to the login form with the message “Wrong credentials.”

First I thought that it was due to our setup or our customization so I tried to create a new tennant but these switches are not present in the preferences there, they are only available on older tennants. I was able to reproduce it becuase we have an older tennant with defaults which we don’t use anymore and I just enabled the switch and tried these use cases and I got the same results.

Anyone have similar issues or any idea of how we can resolve these issues asap?

---

<div class="post-metadata">

**Author:** ![richard.dowinton](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/richard.dowinton/32/16150_2.png) [@richard.dowinton](https://community.auth0.com/u/richard.dowinton)\
**Post date:** [March 8, 2018, 6:09pm UTC](https://community.auth0.com/t/strange-behavior-after-disabling-legacy-lock-api-switch/9875/2 "2018-03-08T18:09:05Z")

</div>

There was a similar issue where **disabling** the Legacy Lock API toggle resulted the `tokeninfo` endpoint not working, but we’ve since resolved this. I haven’t seen any other similar issues.

Could you please share a [HAR file](https://auth0.com/docs/support/troubleshooting-with-har-files) (please remove any sensitive details such as passwords) so we can examine the requests in more detail and see where this problem occurs?

Please upload it to a cloud storage service (e.g. Google drive), and share the link with us. Feel free to restrict access to the link for only `@auth0.com` email addresses using [Sharelock.io](http://Sharelock.io).

---

<div class="post-metadata">

**Author:** ![jgeerts](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jgeerts/32/7907_2.png) [@jgeerts](https://community.auth0.com/u/jgeerts)\
**Post date:** [March 9, 2018, 5:13am UTC](https://community.auth0.com/t/strange-behavior-after-disabling-legacy-lock-api-switch/9875/3 "2018-03-09T05:13:52Z")

</div>

I’ve also added a video demonstrating the issue and added it to the folder.

[https://sharelock.io/1/gB3L6omUuG1u9Ura4zB8Stag-NCyB2RL74PuQI-asz4.4Pl4A2/Ng1A4IYtZTAtGHz80qYP4mOT3tyDsO2VYsjs880pEsaA23r2K2/Lb3yBM71s\_HgUcrQzNgrNR6ke3Eqy2\_ia0oVl7jGxUCaDiEmGj/qYQcSHHVXs9QiCfawFHmsYR9MTp\_C0z5JNRu2hQlEioakhVe32/-0ZSCuQopFQ.xWXN\_yKAYHxvbrp4uW47dQ](https://sharelock.io/1/gB3L6omUuG1u9Ura4zB8Stag-NCyB2RL74PuQI-asz4.4Pl4A2/Ng1A4IYtZTAtGHz80qYP4mOT3tyDsO2VYsjs880pEsaA23r2K2/Lb3yBM71s_HgUcrQzNgrNR6ke3Eqy2_ia0oVl7jGxUCaDiEmGj/qYQcSHHVXs9QiCfawFHmsYR9MTp_C0z5JNRu2hQlEioakhVe32/-0ZSCuQopFQ.xWXN_yKAYHxvbrp4uW47dQ)

---

<div class="post-metadata">

**Author:** ![keystone](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@keystone](https://community.auth0.com/u/keystone)\
**Post date:** [March 9, 2018, 4:07pm UTC](https://community.auth0.com/t/strange-behavior-after-disabling-legacy-lock-api-switch/9875/4 "2018-03-09T16:07:18Z")

</div>

Having the same issue. it seems odd that using the universal login would be using deprecated api calls but the error message suggests it’s a credential issue. There is also no entry in the log when this occurs.

---

<div class="post-metadata">

**Author:** ![keystone](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@keystone](https://community.auth0.com/u/keystone)\
**Post date:** [March 9, 2018, 4:22pm UTC](https://community.auth0.com/t/strange-behavior-after-disabling-legacy-lock-api-switch/9875/5 "2018-03-09T16:22:00Z")

</div>

this is the only thing i see in the har file.  
{“statusCode”:403,“description”:“Invalid state”,“name”:“AnomalyDetected”,“code”:“access\_denied”}

---

<div class="post-metadata">

**Author:** ![jgeerts](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jgeerts/32/7907_2.png) [@jgeerts](https://community.auth0.com/u/jgeerts)\
**Post date:** [March 9, 2018, 4:47pm UTC](https://community.auth0.com/t/strange-behavior-after-disabling-legacy-lock-api-switch/9875/6 "2018-03-09T16:47:40Z")

</div>

I get that as well…

---

<div class="post-metadata">

**Author:** ![keystone](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@keystone](https://community.auth0.com/u/keystone)\
**Post date:** [March 9, 2018, 4:48pm UTC](https://community.auth0.com/t/strange-behavior-after-disabling-legacy-lock-api-switch/9875/7 "2018-03-09T16:48:41Z")

</div>

it looks like your hosted page using lock 11.3 is still calling usernamepassword/login. What should it be calling? and what is causing it to use a deprecated endpoint?

---

<div class="post-metadata">

**Author:** ![keystone](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@keystone](https://community.auth0.com/u/keystone)\
**Post date:** [March 9, 2018, 5:04pm UTC](https://community.auth0.com/t/strange-behavior-after-disabling-legacy-lock-api-switch/9875/8 "2018-03-09T17:04:40Z")

</div>

hey @jgeerts are you calling /login?client= or /authorize?client\_id=

---

<div class="post-metadata">

**Author:** ![keystone](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@keystone](https://community.auth0.com/u/keystone)\
**Post date:** [March 9, 2018, 5:30pm UTC](https://community.auth0.com/t/strange-behavior-after-disabling-legacy-lock-api-switch/9875/9 "2018-03-09T17:30:31Z")

</div>

using the login endpoint was causing this issue for us. Switching to /authorize fixed it for us. good luck.

---

<div class="post-metadata">

**Author:** ![jgeerts](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jgeerts/32/7907_2.png) [@jgeerts](https://community.auth0.com/u/jgeerts)\
**Post date:** [March 9, 2018, 7:21pm UTC](https://community.auth0.com/t/strange-behavior-after-disabling-legacy-lock-api-switch/9875/10 "2018-03-09T19:21:21Z")

</div>

You are right, I get this if I go to the login endpoint directly which worked before but doesn’t seems to work anymore. Thank you!

---

<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:** [March 10, 2018, 7:21pm UTC](https://community.auth0.com/t/strange-behavior-after-disabling-legacy-lock-api-switch/9875/11 "2018-03-10T19:21:30Z")

</div>

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