auth0 / lock

Auth0's signin solution
https://auth0.com/docs/libraries/lock
Other
1.13k stars 556 forks source link

Error page when double-clicking the login button #1979

Closed a5e closed 3 years ago

a5e commented 3 years ago

Describe the problem

When double-clicking the login button, the user is redirected to something.auth0.com/login/callback with the error message:

Oops!, something went wrong

There could be a misconfiguration in the system or a service outage. We track these errors automatically, but if the problem persists feel free to contact us. Please try again.

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).

But the login attempt was successful and accessing the main url for our app shows that the user is correctly authenticated.

What was the expected behavior?

The login should perform without any error.

Reproduction

Environment

stevehobbsdev commented 3 years ago

Hi @a5e, I tried to repro this using your steps but I can't see the error you're seeing. The login button gets disabled on first press and I'm unable to click it a second time.

Anything else you can tell me about how to repro this?

a5e commented 3 years ago

It turns out another dev removed a class from the button after it was displayed, hence why it was still possible to double-click the sign-in button. I'm sorry I made you test this, I did not expected this and should not have open this issue in the first place.

Nadeembhat commented 3 years ago

i am having the same issue Android Google Pixel- Emulator API 29 Google Chrome Browser Steps to reproduce is same as above mentioned by @a5e

stevehobbsdev commented 3 years ago

@Nadeembhat In the case of @a5e, their issue was do with removing a class after the page was rendered, are you in a similar situtation where something is modifying the button rendered by Lock?

Nadeembhat commented 3 years ago

@stevehobbsdev let me gather more information about this. I am not using lock in android, and loginbutton is clickable more than once.if you can help me how can i lock the UI element for login button so that i can click only once . Thanks

stevehobbsdev commented 3 years ago

@Nadeembhat once you have done your own research into your problem, please raise a new issue rather than adding to this one so that it doesn't get lost 👍

Nadeembhat commented 3 years ago

@stevehobbsdev Sure thanks for the quick response

alex-restless commented 1 year ago

We've just had the same problem so will be applying the ability to click only once too.