You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
After generating default Monolithic application using nhipster with frontend as either angular or react. We can login into application by using credentials without entering any username:
Username - (any string or blank), password - admin
Username - (any string or blank), password - user
To Reproduce
Steps to reproduce the behavior:
Generate monolithic application using any frontend, install dependencies and run the application.
Go to Account menu
Click on Sign In
Enter invalid username but correct password
User gets logged in
Expected behavior
User should not be able to login into the application with invalid username and correct password.
Screenshots
Desktop (please complete the following information):
OS: Windows Server 2012 R2
Browser: Chrome
Version: 84.0.4147.135
Additional context
Same issue can be seen in swagger api, we can authenticate user by providing incorrect username and correct password.
The text was updated successfully, but these errors were encountered:
ghost
changed the title
Unauthorized Access to application and API when using JWT method
Unexpected authorized access in security jwt with wrong username but correct password
Sep 1, 2020
Thanks! I have found the bug and fixed that. You are welcome!
Thank you for the quick fix. Yes, I was able to login with any string as username (even empty, that will be another client validation failure bug). Only the password had to be correct (means of any account like admin/user etc).
May I also know what exactly was wrong with the JWT code ? @amanganiello90 No worries, I found the commit.
Describe the bug
After generating default Monolithic application using nhipster with frontend as either angular or react. We can login into application by using credentials without entering any username:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
User should not be able to login into the application with invalid username and correct password.
Screenshots
Desktop (please complete the following information):
Additional context
Same issue can be seen in swagger api, we can authenticate user by providing incorrect username and correct password.
The text was updated successfully, but these errors were encountered: