Fix KIT crawler requiring base_url and client_id options

This commit is contained in:
Joscha
2024-05-10 14:12:45 +02:00
parent 428b0179fc
commit 778517d8c6

View File

@ -22,6 +22,14 @@ class KitShibbolethBackgroundLoginSuccessful():
class KitIliasWebCrawlerSection(IliasWebCrawlerSection):
def base_url(self) -> str:
return _ILIAS_URL
def client_id(self) -> str:
# KIT ILIAS uses the Shibboleth service for authentication. There's no
# use for a client id.
return "unused"
def tfa_auth(self, authenticators: Dict[str, Authenticator]) -> Optional[Authenticator]:
value: Optional[str] = self.s.get("tfa_auth")
if value is None: