def connect(tenant, user, password): router.base_url = tenant router.connect(user, password) #todo: remove auth mimics when routes are used everywhere router.tenant = tenant router.user = user router.password = password return QubellPlatform(auth=router)
def authenticate(self): router.base_url = self.auth.tenant router.connect(self.auth.user, self.auth.password) #todo: remove following, left for compatibility self.auth.cookies = router._cookies return True