feat: enable Log In and add the email service #8
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/login-and-email"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Enables Log In on brooktrails.org and lists the new email offering. Requires brooktrails/infra#445 to be merged and reconciled first, because that PR provides
/oauth2/*.Changes
/oauth2/start?rd=/. When/oauth2/userinforeports a session, the header shows the username and Log Out in place of Sign Up and Log In. Log Out goes through Keycloak's end-session endpoint, so the next Log In prompts for credentials again.membervariant tied to a Keycloak group. Email links tohttps://webmail.brooktrails.org(MXroute branded webmail) for members of/email-users. Everyone else, anonymous or signed in, gets/email.html. This only decides which link to show; it is not access control.email.html: what the service is, who can get it, how to reach webmail, mail-app settings (mail.brooktrails.org), and that MXroute hosts the mail.Before release
mail.brooktrails.organdwebmail.brooktrails.orgare MXroute custom hostnames, added in infra#445. Both should work without certificate errors before this ships, because the explainer page sends mail apps tomail.brooktrails.org.Verification
The page was rendered in jsdom with a mocked
/oauth2/userinfofor three cases: anonymous, signed in without the group, and signed in with/email-users. Each case showed the expected header and Email link. Not yet tested against the live oauth2-proxy.🤖 Generated with Claude Code