-
Notifications
You must be signed in to change notification settings - Fork 554
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lock still not showing rule errors in redirect mode #692
Comments
Your problem is probably that you're calling Here's a simple HTML page to help you out:
|
Thanks @AmaanC but the app that I am working with has a dedicated login page (/login) which would need to display lock on page load. |
Could you try this slight modification? Instead of calling
|
Handling the |
I am having the same issue. But I am using the hosted pages. My code:
|
@eroncastro The If you're using the Hosted Login Page, you need to redirect back to your client (mobile app, webapp, etc.) so that the client can deal with the error and take the appropriate action. If we were to show the
If you insist on showing these errors on the Hosted Login Page, you'll need your current Hosted Login Page setup + you'll need your
That way, if there is an error sent to More about Please note that this is not recommended and may have unintended side-effects - for example |
I don't think it's right. For example, I have a SPA that uses redirection instead of popups, and I still need to show the flashMessage on authorization error, for example, I'm blocking some domains. |
Bumping this to get visibility? I couldn't find a way to display error messages on the login page for unauthorized errors in a redirect mode hosted login page. |
Lock version: 10.5.1
Browser: Chrome 54.0.2840.71
Issue related to issue #637 and supposedly fixed in PR #639.
I am still unable to display custom errors in redirect mode. I am using the latest lock version (10.5.1) which has PR #639 merged in.
Simple rule to throw unauthorized error
Specified the flashMessage property in the lock options. Nothing is shown on lock.
Specified the flashMessage property as an argument which display 'error message' on lock.
Hooked into the authorization_error event which contains the error message in the error parameter but is not shown on lock.
The text was updated successfully, but these errors were encountered: