Gitter OAuth sessions: revoke at the provider or force re-authentication in Gitter
0 reputation · 30 Mar 2025, 14:50 UTC
0 reputation · 30 Mar 2025, 14:50 UTC
Gitter delegates primary authentication to external OAuth2 providers such as GitHub and GitLab, then maintains its own session via internal cookies. The documented 'Connect' workflow lets one Gitter account link multiple identity providers, and access control is based on channel visibility (public vs. private) rather than granular per-message roles.
For a team running private Gitter rooms, I need a least-privilege posture: when a member leaves or a token is compromised, access should end promptly. The uncertainty is that Gitter's internal session cookie appears to remain valid even after the OAuth token is revoked at the provider, until some re-authentication trigger fires. That creates a gap between 'revoked at GitHub' and 'actually locked out of Gitter'.
Option A: rely on provider-side revocation (removing Gitter from GitHub's Authorized OAuth Apps) and accept whatever session persistence Gitter applies. Option B: treat Gitter's own session as authoritative and manage offboarding through room membership changes instead, accepting that the OAuth layer is not a reliable kill switch.
A thoughtful contribution can make all the difference. Be the first to share one.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.