Replace login/register forms with Keycloak sign-in flow

- LoginScreen: single "Sign in with Aeternalis" button replaces two-tab
  email/password/register layout; all credential encryption removed
- login_screen.gd: wires Keycloak.token_received → Auth.login_with_keycloak,
  handles auth_error and auth_failed signals
- Auth.gd: rewritten to use Keycloak session tokens; stores Keycloak refresh
  token for silent re-auth; calls Keycloak.revoke on logout
- Keycloak.gd: new autoload implementing Authorization Code + PKCE with
  loopback redirect, silent refresh, and fire-and-forget revocation
- project.godot: register Keycloak as autoload singleton

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
This commit is contained in:
dingo
2026-04-02 15:04:43 -04:00
co-authored by Claude Happy
parent d5363fa014
commit 39253716ad
5 changed files with 504 additions and 380 deletions
+1
View File
@@ -21,6 +21,7 @@ Network="*res://autoloads/Network.gd"
ContentCache="*res://autoloads/ContentCache.gd"
BoardTemplateCache="*res://autoloads/BoardTemplateCache.gd"
Auth="*res://autoloads/Auth.gd"
Keycloak="*res://autoloads/Keycloak.gd"
CollectionCache="*res://autoloads/CollectionCache.gd"
Chat="*res://autoloads/Chat.gd"
Settings="*res://autoloads/Settings.gd"