

def parse_authorization_header(self):
    digest = self.request.headers.get('Authorization')
    digest = re.sub('^Basic ', '', digest)
    try:
        digest = base64.b64decode(digest)
    except TypeError:
        self.raise_http_400({
            'error': 'invalid_request',
            'error_description': 'Base 64 from Authorization header could not be decoded',
        })
    (self.client_id, self.code_from_header) = digest.split(':')

dataset/ETHPy150Open globocom/oauth2u/oauth2u/server/handlers/defaults.py AccessTokenHandler.parse_authorization_header/original