From 86e2e226dcefb98232410cc2289d11a664076adc Mon Sep 17 00:00:00 2001 From: I-Al-Istannen Date: Sun, 3 Apr 2022 11:32:38 +0200 Subject: [PATCH] Notify user when shibboleth presents new entitlements --- CHANGELOG.md | 2 ++ PFERD/crawl/ilias/kit_ilias_web_crawler.py | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d5f9dc6..4e11224 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,6 +27,8 @@ ambiguous situations. ### Fixed - ILIAS login - Local video cache if `windows_paths` is enabled +- Report when Shibboleth reviews entitlements +- Support for video listings with more columns ## 3.3.0 - 2022-01-09 diff --git a/PFERD/crawl/ilias/kit_ilias_web_crawler.py b/PFERD/crawl/ilias/kit_ilias_web_crawler.py index a3e37a9..2a5fc87 100644 --- a/PFERD/crawl/ilias/kit_ilias_web_crawler.py +++ b/PFERD/crawl/ilias/kit_ilias_web_crawler.py @@ -710,6 +710,12 @@ class KitShibbolethLogin: } soup = await _post(sess, url, data) + if soup.find(id="attributeRelease"): + raise CrawlError( + "ILIAS Shibboleth entitlements changed! " + "Please log in once in your browser and review them" + ) + if self._tfa_required(soup): soup = await self._authenticate_tfa(sess, soup)