Skip to content
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

fix: ensure the prefix follows the same convention as the username #29

Merged
merged 3 commits into from
Jul 19, 2024

Conversation

sgaist
Copy link
Member

@sgaist sgaist commented Jul 19, 2024

Describe your changes

Authenticators have a normalization function that should also be used on the prefix otherwise there might be issues when dealing with checks as the get_authenticated_user method returns a normalized user while authenticate returns the "raw" user.

This PR fixes that by ensuring the prefix is passed through the same normalization method.

Issue ticket number and link

Closes #26

sgaist added 3 commits July 19, 2024 12:13
Authenticators have a normalization function that should also be
used on the prefix otherwise there might be issues when dealing
with checks as the get_authenticated_user method returns a
normalized user while authenticate returns the "raw" user.
Since version 5, the logic of check_allowed has changed for
a more secure version.
This allows to test current and previous versions of JupyterHub.
@sgaist sgaist force-pushed the prefix_normalization branch from 078f193 to 23a82cd Compare July 19, 2024 12:09
@sgaist sgaist merged commit 4f88ccb into main Jul 19, 2024
31 checks passed
@sgaist sgaist deleted the prefix_normalization branch July 19, 2024 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Does not work with arbitrary login_service or service_name
1 participant