authentik overlay patch3: SFE for ALL old iOS browsers + social-login links
Two follow-ups to patch2 (both in patch-compat-sfe.py, guarded): 1. compat_needs_sfe() now also serves the SFE to ANY iOS browser on iOS<=16.3, not just Safari. iOS Chrome/Firefox are WebKit skins (Apple mandate) reporting a non-Safari UA family, so the Safari-only check missed them and they still got the blank modern SPA. Added an os.family=="iOS" + version<=16.3 branch. 2. Inject static social-login <a> links (Continue with Google/GitHub/Facebook -> /source/oauth/login/<slug>/) into the SFE shell (flow-sfe.html). The SFE architecturally can't render Identification-stage sources (authentik docs), and emo's account (emil.barzin@gmail.com) is Google-only with NO password — so the SFE's username/password form was a dead end. The links are plain redirects that work on any browser. Slugs are static; re-verify on source changes. Tag -> 2026.2.4-patch3; values repoint + docs land once GHA builds it. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
6ba60cbb2d
commit
916516eeab
3 changed files with 75 additions and 30 deletions
|
|
@ -33,11 +33,14 @@ RUN set -eux; \
|
|||
# PATCH #2 — old-browser BLANK LOGIN. authentik's modern flow SPA is ES2022 and
|
||||
# hard-fails (blank login) on Safari<=16.3 (e.g. iPadOS<=16.3). authentik already
|
||||
# ships a no-JS Simplified Flow Executor (SFE, ES5) but only serves it to
|
||||
# IE/old-Edge/PKeyAuth. patch-compat-sfe.py extends compat_needs_sfe() to serve
|
||||
# the SFE to old Safari too, so those clients get the REAL authentik login
|
||||
# (password + MFA + reputation, NO auth downgrade) instead of a blank page. The
|
||||
# script is guarded (asserts the upstream anchor + ast-parses) so the build fails
|
||||
# loudly if upstream moves it — re-verify on every authentik bump.
|
||||
# IE/old-Edge/PKeyAuth. patch-compat-sfe.py (a) extends compat_needs_sfe() to
|
||||
# serve the SFE to old Safari AND any iOS browser (Chrome/CriOS, Firefox/FxiOS —
|
||||
# all share the system WebKit) on iOS<=16.3, and (b) injects static social-login
|
||||
# <a> links into the SFE shell (the SFE can't render Identification-stage sources;
|
||||
# needed for password-less Google-only accounts). Clients get the REAL authentik
|
||||
# login (password + MFA + reputation, NO auth downgrade) instead of a blank page.
|
||||
# The script is guarded (asserts both upstream anchors + ast-parses) so the build
|
||||
# fails loudly if upstream moves — re-verify on every authentik bump.
|
||||
COPY patch-compat-sfe.py /tmp/patch-compat-sfe.py
|
||||
RUN python3 /tmp/patch-compat-sfe.py && rm -f /tmp/patch-compat-sfe.py
|
||||
USER authentik
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue