Browse Source

upgrade authentication pasteur

main
Zolfa 8 months ago
parent
commit
561a485417
Signed by: zolfa GPG Key ID: E1A43B038C4D6616
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      src/zolfa/zauth/pasteur.py

+ 5
- 5
src/zolfa/zauth/pasteur.py View File

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


Loading…
Cancel
Save