gcb_web_auth/utils.py
def revoke_token(token):
    """
    Revokes a token using it's service's revoke_uri and the refresh_token
    :param token: an OAuthToken object
    :return: JSON response of the revoke status
    """
    service = token.service
    auth = (service.client_id, service.client_secret,)
    # Revoking the refresh token will revoke its parents too
    data = {'token': token.token_dict.get('refresh_token')}
    response = requests.post(service.revoke_uri, auth=auth, data=data)
    try:
        response.raise_for_status()
    except requests.HTTPError as e:
        raise OAuthException(e)

    Revokes a token using it's service's revoke_uri and the refresh_token
    :param token: an OAuthToken object
    :return: JSON response of the revoke status
    
Revokes a token using it's service's revoke_uri and the refresh_token
Revokes a token using it ' s service ' s revoke_uri and the refresh_token
def revoke_token(token):
    service = token.service
    auth = (service.client_id, service.client_secret,)
    data = {'token': token.token_dict.get('refresh_token')}
    response = requests.post(service.revoke_uri, auth=auth, data=data)
    try:
        response.raise_for_status()
    except requests.HTTPError as e:
        raise OAuthException(e)
def revoke_token ( token ) : service = token . service auth = ( service . client_id , service . client_secret , ) data = { 'token' : token . token_dict . get ( 'refresh_token' ) } response = requests . post ( service . revoke_uri , auth = auth , data = data ) try : response . raise_for_status ( ) except requests . HTTPError as e : raise OAuthException ( e )
Revokes a token using it's service's revoke_uri and the refresh_token
Revokes a token using it ' s service ' s revoke_uri and the refresh_token
"""
    Revokes a token using it's service's revoke_uri and the refresh_token
    :param token: an OAuthToken object
    :return: JSON response of the revoke status
    """ # Revoking the refresh token will revoke its parents too
JSON response of the revoke status
JSON response of the revoke status
token
an OAuthToken object
an OAuthToken object