Iframe-based SSO logout (tolerates dead apps)
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 48s

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
giles
2026-02-23 12:21:54 +00:00
parent 80c4400ae2
commit 4e8e6bab61
3 changed files with 37 additions and 13 deletions

View File

@@ -0,0 +1,21 @@
{% extends "_types/root/_index.html" %}
{% block meta %}{% endblock %}
{% block title %}Signing out — Rose Ash{% endblock %}
{% block content %}
<div class="py-8 max-w-md mx-auto text-center">
<h1 class="text-2xl font-bold mb-4">Signing out&hellip;</h1>
<p class="text-stone-500 text-sm">You will be redirected shortly.</p>
</div>
{# Fire-and-forget: clear each client app's session via hidden iframes #}
{% for url in clear_urls %}
<iframe src="{{ url }}" style="display:none" aria-hidden="true"></iframe>
{% endfor %}
<script>
// Give iframes a moment to load, then redirect
setTimeout(function() {
window.location.href = "{{ final_url }}";
}, 1500);
</script>
{% endblock %}