Skip to content

Commit

Permalink
Merge pull request #2819 from yuvipanda/an-us-fiux
Browse files Browse the repository at this point in the history
Don't look for USERNAME_DERIVATION_PEPPER unless necessary
  • Loading branch information
yuvipanda authored Jul 14, 2023
2 parents f6c70bd + 3a629da commit 43404b1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions helm-charts/basehub/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,6 @@ jupyterhub:
import hashlib
from z2jh import get_config
USERNAME_DERIVATION_PEPPER = bytes.fromhex(os.environ['USERNAME_DERIVATION_PEPPER'])
def salt_username(authenticator, handler, auth_model):
# Combine parts of user info with different provenances to eliminate
Expand All @@ -777,7 +776,7 @@ jupyterhub:
# FIXME: Provide useful error message when using an auth provider that
# doesn't give us 'oidc'
# FIXME: Raise error if this is attempted to be used with anything other than CILogon
USERNAME_DERIVATION_PEPPER = bytes.fromhex(os.environ['USERNAME_DERIVATION_PEPPER'])
cilogon_user = auth_model['auth_state']['cilogon_user']
user_key_parts = {
# Opaque ID from CILogon
Expand Down

0 comments on commit 43404b1

Please sign in to comment.