def validate_auth_token(token): """ Validate an authentication token. :param token: Authentication token as a variable-length string. :returns: Tuple(account identifier, token lifetime) if successful, None otherwise. """ return authentication.validate_auth_token(token)
def validate_auth_token(token): """ Validate an authentication token. :param token: Authentication token as a variable-length string. :returns: dict {account: , identity: , lifetime: , vo: } if successful, None otherwise. """ auth = authentication.validate_auth_token(token) vo = auth['account'].vo auth = api_update_return_dict(auth) auth['vo'] = vo return auth
def validate_auth_token(token): """ Validate an authentication token. :param token: Authentication token as a variable-length string. :returns: dictionary { account: <account name>, identity: <identity>, lifetime: <token lifetime>, audience: <audience>, authz_scope: <authz_scope> } if successful, None otherwise. """ return api_update_return_dict(authentication.validate_auth_token(token))
def validate_auth_token(token): """ Validate an authentication token. :param token: Authentication token as a variable-length string. :returns: dictionary { account: <account name>, identity: <identity>, lifetime: <token lifetime>, audience: <audience>, authz_scope: <authz_scope>, vo: <vo> } if successful, None otherwise. """ auth = authentication.validate_auth_token(token) if auth is not None: vo = auth['account'].vo auth = api_update_return_dict(auth) auth['vo'] = vo return auth