def create_login_url(dest_url=None, _auth_domain=None, federated_identity=None):
 req = user_service_pb.CreateLoginURLRequest()
 resp = user_service_pb.CreateLoginURLResponse()
 req.set_destination_url(dest_url)
 if _auth_domain:
  req.set_auth_domain(_auth_domain)
 if federated_identity:
  req.set_federated_identity(federated_identity)
 try:
  apiproxy_stub_map.MakeSyncCall('user', 'CreateLoginURL', req, resp)
 except apiproxy_errors.ApplicationError as e:
  if (e.application_error == user_service_pb.UserServiceError.REDIRECT_URL_TOO_LONG):
   raise RedirectTooLongError
  elif (e.application_error == user_service_pb.UserServiceError.NOT_ALLOWED):
   raise NotAllowedError
  else:
   raise e
 return resp.login_url()

def create_login_url ( dest_url = None , _auth_domain = None , federated_identity = None ) : req = user_service_pb . CreateLoginURLRequest ( ) resp = user_service_pb . CreateLoginURLResponse ( ) req . set_destination_url ( dest_url ) if _auth_domain : req . set_auth_domain ( _auth_domain ) if federated_identity : req . set_federated_identity ( federated_identity ) try : apiproxy_stub_map . MakeSyncCall ( 'user' , 'CreateLoginURL' , req , resp ) except apiproxy_errors . ApplicationError as e : if ( e . application_error == user_service_pb . UserServiceError . REDIRECT_URL_TOO_LONG ) : raise RedirectTooLongError elif ( e . application_error == user_service_pb . UserServiceError . NOT_ALLOWED ) : raise NotAllowedError else : raise e return resp . login_url ( )
computes the login url for redirection .