def _get_id_token_user(token, audiences, allowed_client_ids, time_now, cache):
 try:
  parsed_token = _verify_signed_jwt_with_certs(token, time_now, cache)
 except _AppIdentityError as e:
  logging.warning('id_token verification failed: %s', e)
  return None
 except:
  logging.warning('id_token verification failed.')
  return None
 if _verify_parsed_token(parsed_token, audiences, allowed_client_ids):
  email = parsed_token['email']
  return users.User(email)

def _get_id_token_user ( token , audiences , allowed_client_ids , time_now , cache ) : try : parsed_token = _verify_signed_jwt_with_certs ( token , time_now , cache ) except _AppIdentityError as e : logging . warning ( 'id_token verification failed: %s' , e ) return None except : logging . warning ( 'id_token verification failed.' ) return None if _verify_parsed_token ( parsed_token , audiences , allowed_client_ids ) : email = parsed_token [ 'email' ] return users . User ( email )
get a user for the given id token .