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
In the JupyterHub config, I enforce a username pattern using c.Authenticator.username_pattern = r'user_.+'.
Thus, trying to log in with an invalid user name, e.g., paul, results in displaying the error message "Invalid username or password".
However, the username and the password are stored in the database.
Expected behaviour
If the username is invalid, I expect that the credentials are not stored in the database.
Actual behaviour
The username and hashed password are stored in the database.
How to reproduce
Set up a JupyterHub instance using FirstUseAuthenticator and a RegEx for usernames.
Try to log in with an invalid username.
The log-in fails but running the command strings passwords.dbm.db reveals that the invalid username gets saved.
# paste output of `pip freeze` or `conda list` here
Configuration
c=get_config()
c.JupyterHub.authenticator_class='firstuseauthenticator.FirstUseAuthenticator'c.FirstUseAuthenticator.min_password_length=4c.Authenticator.username_pattern=r'user_.+'# debug-logging for testingimportloggingc.JupyterHub.log_level=logging.DEBUG
Logs
[W 2023-08-21 16:32:32.370 JupyterHub base:825] Failed login for paul
I 2023-08-21 16:32:32.373 JupyterHub log:186] 200 POST /hub/login?next=%2Fhub%2F 307.96ms
The text was updated successfully, but these errors were encountered:
Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗
If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! 👋
Bug description
In the JupyterHub config, I enforce a username pattern using
c.Authenticator.username_pattern = r'user_.+'
.Thus, trying to log in with an invalid user name, e.g., paul, results in displaying the error message "Invalid username or password".
However, the username and the password are stored in the database.
Expected behaviour
If the username is invalid, I expect that the credentials are not stored in the database.
Actual behaviour
The username and hashed password are stored in the database.
How to reproduce
strings passwords.dbm.db
reveals that the invalid username gets saved.Your personal set up
Full environment
Configuration
Logs
The text was updated successfully, but these errors were encountered: