mirror of
https://github.com/Garmelon/PFERD.git
synced 2025-07-12 14:12:30 +02:00
Fix KIT crawler requiring base_url and client_id options
This commit is contained in:
@ -22,6 +22,14 @@ class KitShibbolethBackgroundLoginSuccessful():
|
|||||||
|
|
||||||
|
|
||||||
class KitIliasWebCrawlerSection(IliasWebCrawlerSection):
|
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]:
|
def tfa_auth(self, authenticators: Dict[str, Authenticator]) -> Optional[Authenticator]:
|
||||||
value: Optional[str] = self.s.get("tfa_auth")
|
value: Optional[str] = self.s.get("tfa_auth")
|
||||||
if value is None:
|
if value is None:
|
||||||
|
Reference in New Issue
Block a user