Grant-based session revocation, remove iframe logout
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 43s

Account creates OAuthGrant per authorization, revokes on logout.
Client apps verify grants via /auth/internal/verify-grant endpoint.
Removes iframe-based logout page.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
giles
2026-02-23 12:30:53 +00:00
parent 4e8e6bab61
commit e0a2a47ba2
3 changed files with 82 additions and 52 deletions

View File

@@ -1,21 +0,0 @@
{% 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 %}