From 77a109bb7e9e9cd1f85cf2f70b343ec57e9a7e57 Mon Sep 17 00:00:00 2001 From: Joscha Date: Tue, 28 Jul 2020 19:13:51 +0000 Subject: [PATCH] Fix ilias shibboleth authenticator The shibboleth site got a visual overhaul that slightly changed the classes of a form we need. --- PFERD/ilias/authenticators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PFERD/ilias/authenticators.py b/PFERD/ilias/authenticators.py index 68faf00..763ed38 100644 --- a/PFERD/ilias/authenticators.py +++ b/PFERD/ilias/authenticators.py @@ -67,7 +67,7 @@ class KitShibbolethAuthenticator(IliasAuthenticator): while not self._login_successful(soup): # Searching the form here so that this fails before asking for # credentials rather than after asking. - form = soup.find("form", {"class": "form2", "method": "post"}) + form = soup.find("form", {"class": "full content", "method": "post"}) action = form["action"] # Equivalent: Enter credentials in