'Extract information from a v3 token reference.'

def _extract_v3_token_data(self, token_data):

    user_id = token_data['token']['user']['id']
    expires_at = token_data['token']['expires_at']
    audit_ids = token_data['token']['audit_ids']
    methods = token_data['token'].get('methods')
    domain_id = token_data['token'].get('domain', {}).get('id')
    project_id = token_data['token'].get('project', {}).get('id')
    trust_id = token_data['token'].get('OS-TRUST:trust', {}).get('id')
    access_token_id = token_data['token'].get('OS-OAUTH1', {}).get('access_token_id')
    federated_info = self._build_federated_info(token_data)
    return (user_id, expires_at, audit_ids, methods, domain_id, project_id, trust_id, access_token_id, federated_info)
