-
Notifications
You must be signed in to change notification settings - Fork 3
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
Better information for failed logins #14
Comments
Maybe with a I'm curious what your use case is. What decisions would you make with error data? |
Basically I have used something like this in the past to help understand authentication issues: (please don't mind some psuedo code)
This allows the frontend to receive the JWT authentication error message which can really help when working with complex systems. For example, we had one case recently where the frontend kept receiving |
Sounds like it was useful for forensics, but not necessarily for application logic. Is that right? Can you say more about why this was easier to diagnose from the frontend rather than rely on the |
Hey @cainlevy, I'm curious, are you open to extending this project so that the caller of
subject_from
can get better information than the id token verification worked/failed?One way I have implemented this is, is by raising errors in the verifier and then catching that error in the application controller and then returning the error's message to the client. I have found this very helpful when working on projects so that you can know why the login failed.
Thoughts?
The text was updated successfully, but these errors were encountered: