Ejemplo n.º 1
0
def get_userid_from_authorization(request, scopes=['wholesite']):
    valid, oauth_request = server.verify_request(*(extract_params(request) +
                                                   (scopes, )))
    if not valid:
        return None
    # TODO(hyena): I'm not sure where this property comes from. Find out.
    return oauth_request.userid
Ejemplo n.º 2
0
def get_userid_from_authorization(scopes=['wholesite']):
    valid, request = server.verify_request(*(extract_params() + (scopes,)))
    if not valid:
        return None
    return request.userid
Ejemplo n.º 3
0
def get_userid_from_authorization(request, scopes=['wholesite']):
    valid, oauth_request = server.verify_request(*(extract_params(request) + (scopes,)))
    if not valid:
        return None
    # TODO(hyena): I'm not sure where this property comes from. Find out.
    return oauth_request.userid