crabidy/crabidy-core
Test User 659e678522 Web client: prompt for login on visit when auth is enabled
The browser client already sent stored credentials and showed a login
form, but only when the server answered UNAUTHENTICATED -- i.e. only
when every role was guarded. With a fallback role configured, an
anonymous browser silently connected as that role and was never offered
a way to log in as a higher one.

The server now reports its auth on/off switch on the InitResponse
(auth_enabled, field 8), which is reachable anonymously. The RPC handler
stamps it from Authenticator::enabled(); the playback loop, which owns
queue state and not the auth config, leaves it false.

On first connect with no stored credentials against an auth-enabled
server, the web client raises the login dialog. It is dismissible --
"continue as guest" keeps the unauthenticated fallback role -- and is
shown once per session so stream reconnects do not nag. When the server
denies anonymous access outright (UNAUTHENTICATED), the same dialog
appears without the guest option, because credentials are then the only
way in.

Docs: architecture/roles-auth.md and web-client.md updated.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-23 17:51:55 +02:00
..
crabidy/v1 Web client: prompt for login on visit when auth is enabled 2026-07-23 17:51:55 +02:00
src Design the crabidy content store; add wire + fsdy foundations 2026-07-22 10:58:11 +02:00
Cargo.toml Add a Leptos web client served by the server 2026-07-21 22:43:06 +02:00
buf.yaml Follow some guidelines for proto notation 2023-05-21 13:47:07 +02:00
build.rs Add a Leptos web client served by the server 2026-07-21 22:43:06 +02:00