ficus-tracker/app/utils.py
def parse_authorization_header(auth_header):
    """ Parse auth header and return (login, password) """
    auth_str = auth_header.split(' ')[1]  # Remove 'Basic ' part
    auth_str = base64.b64decode(auth_str).decode()  # Decode from base64
    auth_str = auth_str.split(':')
    return auth_str[0], auth_str[1]
 Parse auth header and return (login, password) 
Parse auth header and return (login, password)
Parse auth header and return ( login password )
def parse_authorization_header(auth_header):
    auth_str = auth_header.split(' ')[1]  
    auth_str = base64.b64decode(auth_str).decode()  
    auth_str = auth_str.split(':')
    return auth_str[0], auth_str[1]
def parse_authorization_header ( auth_header ) : auth_str = auth_header . split ( ' ' ) [ 1 ] auth_str = base64 . b64decode ( auth_str ) . decode ( ) auth_str = auth_str . split ( ':' ) return auth_str [ 0 ] , auth_str [ 1 ]
Parse auth header and return (login, password)
Parse auth header and return ( login password )
""" Parse auth header and return (login, password) """ # Remove 'Basic ' part # Decode from base64
auth_header