|
|
@ -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() |
|
|
|