Fix the registry to work with unicode usernames in LDAP.
This commit is contained in:
parent
f049f738da
commit
2da8b4737e
4 changed files with 57 additions and 40 deletions
|
@ -70,7 +70,7 @@ def process_basic_auth(auth):
|
|||
logger.debug('Invalid basic auth format.')
|
||||
return
|
||||
|
||||
credentials = b64decode(normalized[1]).split(':', 1)
|
||||
credentials = [part.decode('utf-8') for part in b64decode(normalized[1]).split(':', 1)]
|
||||
|
||||
if len(credentials) != 2:
|
||||
logger.debug('Invalid basic auth credential format.')
|
||||
|
|
Reference in a new issue