gcb_web_auth/utils.py
def save_dukeds_token(user, token):
    """
    Saves a DukeDSAPIToken object containing the provided token for the specified user
    :param user: A django User
    :param token: the token text to save
    :return: The newly created token
    """
    remove_invalid_dukeds_tokens(user)
    return DukeDSAPIToken.objects.create(user=user, key=token)

    Saves a DukeDSAPIToken object containing the provided token for the specified user
    :param user: A django User
    :param token: the token text to save
    :return: The newly created token
    
Saves a DukeDSAPIToken object containing the provided token for the specified user
Saves a DukeDSAPIToken object containing the provided token for the specified user
def save_dukeds_token(user, token):
    remove_invalid_dukeds_tokens(user)
    return DukeDSAPIToken.objects.create(user=user, key=token)
def save_dukeds_token ( user , token ) : remove_invalid_dukeds_tokens ( user ) return DukeDSAPIToken . objects . create ( user = user , key = token )
Saves a DukeDSAPIToken object containing the provided token for the specified user
Saves a DukeDSAPIToken object containing the provided token for the specified user
"""
    Saves a DukeDSAPIToken object containing the provided token for the specified user
    :param user: A django User
    :param token: the token text to save
    :return: The newly created token
    """
The newly created token
The newly created token
user
A django User
A django User
token
the token text to save
the token text to save