def get_raw_token(self, header):
    '\n        Extracts an unvalidated JSON web token from the given "Authorization"\n        header value.\n        '
    parts = header.split()
    if (len(parts) == 0):
        return None
    if (parts[0] not in AUTH_HEADER_TYPE_BYTES):
        return None
    if (len(parts) != 2):
        raise AuthenticationFailed(_('Authorization header must contain two space-delimited values'), code='bad_authorization_header')
    return parts[1]
Extracts an unvalidated JSON web token from the given "Authorization"
header value.
def get_raw_token(self, header):
    '\n        Extracts an unvalidated JSON web token from the given "Authorization"\n        header value.\n        '
    parts = header.split()
    if (len(parts) == 0):
        return None
    if (parts[0] not in AUTH_HEADER_TYPE_BYTES):
        return None
    if (len(parts) != 2):
        raise AuthenticationFailed(_('Authorization header must contain two space-delimited values'), code='bad_authorization_header')
    return parts[1]