Repository navigation
Description
Summary
The pilot reports that a normal user has no sign-out button. Since #4903 (first released in v0.5.87), every session an organization's identity provider mints carries trustedOrganizationId, the field that confines the session to that organization. The app reads the same field as "an authenticating proxy owns this session" and leaves Log out out of the account menu. So everyone who signs in with Continue with SSO cannot sign out, while an owner or admin who signs in with a password can. In an SSO organization that is typically every ordinary member. The server accepts a sign-out for these sessions; only the menu hides it.
This follows from the code below. It was not reproduced against a running deployment, and the pilot's sign-in method was not captured.
The report
Abmeldebutton fehlt mit normalem User
"The sign-out button is missing for a normal user."
What the repository says (main at b2560c2d7)
- SSO sessions are bound to their organization.
createSsoUserSessionwritestrustedOrganizationId(the connection's organization) on every SSO session (services/platform/backend/domains/sso/service.ts:246-264). It runs at the end of every SSO sign-in, OIDC and SAML alike (:651-654). fix(platform): bind organization session authority #4903 (07419b9, 2026-10-13, "bind organization session authority") added the column to that insert; before, the row carried onlyactiveOrganizationId. - The app treats that field as "proxied".
services/platform/app/hooks/use-session-user.ts:18-25: "A session an authenticating proxy asserted carries the organization it was minted for; the proxy owns signing in and out for it, so the app offers no sign-out of its own." It computesproxied = typeof sessionRecord?.trustedOrganizationId === 'string'. This dates from feat(platform): own trusted-header keys per organization #3418 (3c39e4f, 2026-09-19), when only the trusted-headers door wrote the field. - The menu drops Log out for it (
services/platform/app/components/user-button.tsx:524-535,if (!proxied)). The full-page entry failure drops its Sign in again the same way (services/platform/app/components/layout/dashboard-entry-failure.tsx:69-78). - The server allows the sign-out.
/sign-outis one of the paths a bound session may call (services/platform/backend/auth/session-authority.ts:108-110,:218-225). - A stale comment.
services/platform/backend/auth/auth.ts:957-961still says "Only the trusted-headers door writes them". The session-create hook also writes the field when a passkey bound to an organization signs in (auth.ts:1006-1028,services/platform/backend/auth/passkey-authority.ts:350-377). That passkey path was not traced end to end. - Lifetime. An SSO session lasts 30 days unless the organization sets an idle timeout (
service.ts:250-252). Without Log out, a person on a shared device cannot end it from Tale.
What the docs and tests say
docs/en/platform/member/preferences.md:84: "Log out in the profile menu ends the current session and returns you to sign-in. Sign out on a shared device when you finish using Tale."docs/en/platform/admin/enterprise-sso.md:87limits the missing sign-out to members who arrive through an authenticating proxy.- The unit test
services/platform/app/components/user-button.test.tsx:402-416setsproxied: trueon a mock; no test connects an SSO session to that flag. - Manual boxes:
AUTH-F4(services/platform/tests/manual/suites/auth.md:70-72) logs out a password account;AUTH-F12(:131) signs in through SSO but does not open the account menu;AUTH-F24(:220-224) expects no Log out only for a proxied visitor.
What was not examined
- A real SSO sign-in on a running deployment.
- The release the pilot runs. The behaviour applies from v0.5.87.
- Whether "normal user" means an SSO user. The role plays no part in the menu; only
proxieddoes.
Options (no preference stated)
- Tell the two kinds of bound session apart: let the client know whether the trusted-headers door made the session (a separate field or a marker of the door), and hide Log out only then.
- Offer Log out on every session. For a proxied one, say that the proxy may sign the person in again.
- In addition, sign out at the identity provider (OIDC RP-initiated logout, SAML single logout), so that Continue with SSO does not silently re-enter through the provider's own session. Tale does not do this today; it can be scoped separately.
Done when (whichever option)
- A person signed in through SSO can end their session from the account menu and lands on sign-in.
- A session a trusted proxy asserted behaves as
enterprise-sso.md:87documents. - A test covers both, starting from the session row the server writes rather than a mocked flag.
- The comment at
auth.ts:957-961and the manual boxes (AUTH-F12, or a new box) match the behaviour.
Related
#4903, #3418, #4908 (another effect of organization-bound SSO sessions), #5044 (pilot findings).
Activity
yannickmonney commentedon Oct 30, 2026
The reporter confirmed on 2026-10-30 that the users without Log out sign in through SSO. That matches the cause described above: every SSO session carries
trustedOrganizationId(since #4903), and the account menu reads that field as a proxied session (services/platform/app/hooks/use-session-user.ts:18-25,services/platform/app/components/user-button.tsx:524-535). The behaviour itself has still not been reproduced on a running deployment.yannickmonney commentedon Oct 30, 2026
Second relay of the report (2026-10-30, evening): "Sometimes there is no log out button."
"Sometimes" fits the cause above: Log out depends on how the current session was made, not on the person or the role. The following is from the code (
mainat49ce42fdd; the files are unchanged sinceb2560c2d7) and was not run.trustedOrganizationId(services/platform/backend/domains/sso/service.ts:246-264), and Log out is gone.proxiedreads false (services/platform/app/hooks/use-session-user.ts:22-25). So a person signed in through SSO can see Log out briefly before it disappears.services/platform/backend/auth/passkey-authority.ts:325-333).:357-377, written byservices/platform/backend/auth/auth.ts:1018-1025), so that session has no Log out either.TALE_ORG_SESSION_CUTOVER_AT(passkey-authority.ts:315-316), which the v0.5.88 notes say to leave empty for now. On a default deployment, this path does not occur.tale-code-bot commentedon Nov 1, 2026
The passkey path is filed as #5259. A passkey that a person enrolls while a trusted proxy's
session is open keeps the role the proxy asserted. Every later sign-in with that passkey writes
the role onto the new session, so the menu hides Log out there too. It needs
TALE_ORG_SESSION_CUTOVER_ATto be set, as traced above. This was read from the code and notreproduced.
It stays out of the change for this issue (task TALE-336, branch
test/sso-session-keeps-log-out). The behaviour this issue reports was fixed by3c393117b(#4908): the app now reads a session as a proxy's only by its
trustedRole, which a singlesign-on session never carries. The branch adds tests that start from the session rows the
server writes, the
auth.tscomment and the manual box. It is still under way and has not beenreviewed.
test(platform): prove a single sign-on session keeps Log out
test(platform): prove a single sign-on session keeps Log out
tale-code-bot commentedon Nov 1, 2026
Reopened: GitHub closed this issue by mistake. The body of merge train pull request #5262 named it with a closing keyword where it listed commits that wait for the next train, so GitHub closed it when #5262 merged into
mainat 16:00 UTC. #5262 did not carry the change.The change that closes this issue is commit 163ca69 (
test(platform): prove a single sign-on session keeps Log out, task TALE-336). It sits on the stable merge traintrain: it is not inmainand not in v0.5.95. It reachesmainwith the next stable merge train, which departs at about 23:54 UTC today, and the merge of that train closes this issue.