From 561a485417d17fd73a9e1970fabf39bb9cce7773 Mon Sep 17 00:00:00 2001 From: Zolfa Date: Sat, 26 Aug 2023 18:16:47 +0200 Subject: [PATCH] upgrade authentication pasteur --- src/zolfa/zauth/pasteur.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/zolfa/zauth/pasteur.py b/src/zolfa/zauth/pasteur.py index 352ea42..28d0509 100644 --- a/src/zolfa/zauth/pasteur.py +++ b/src/zolfa/zauth/pasteur.py @@ -19,7 +19,7 @@ class PasteurSSO: " Gecko/20100101 Firefox/104.0)") } SP_START = "https://connect.pasteur.fr" - IDP_ENTRY_POINT = "https://idp.pasteur.fr/idp/profile/SAML2/POST/SSO" + IDP_ENTRY_POINT = "https://identity.pasteur.fr/realms/pasteur/protocol/saml" def __init__(self, username, password): self.username = username @@ -52,11 +52,11 @@ class PasteurSSO: self.client.select_form() self.client.submit_form() self.client.select_form() - self.client.form['j_username'] = self.username - self.client.form['j_password'] = self.password - self.client.form['_eventId_proceed'] = "" + self.client.form['username'] = self.username + self.client.form['password'] = self.password + #self.client.form['_eventId_proceed'] = "" # Make authentication persistent - self.client.form['donotcache'] = "0" + #self.client.form['donotcache'] = "0" logger.info(f"IDP: Authenticating '{self.username}'.") self.client.submit_form() self.client.select_form()