Sessions and security activity
Show people where they are signed in, let them sign out anywhere, end sessions when access changes, and show each person their own security log.
- Required 3
- Recommended 7
Required
Let people sign out of one device or all of them
ACC-28Let people end any one session from the list, or every session but the current one. The ended sessions stop working within the limit in end sessions when access changes.
End sessions when access changes
ACC-29End every other session when the password changes or a factor is removed. End every session when the account is disabled, deleted or locked after a "This wasn't me" report. Every revocation takes effect on every server within 60 seconds. This is the one home of that limit, for sign-outs, removed roles, removed members and directory removals too.
Rotate refresh tokens and catch their reuse
ACC-80Issue a new refresh token on every refresh and cancel the old one. When a cancelled refresh token comes back, revoke its whole family and make the person sign in again. A client that cannot rotate binds its refresh tokens to a key with DPoP or mutual TLS.
Recommended
List every signed-in device
ACC-27Show each person their active sessions, with device, browser, approximate place, sign-in time and last activity, and mark the current one.
List connected apps and personal tokens
ACC-30Show each person every app, agent and personal token that acts for them, with its scopes and last use. Let them revoke each one.
Show people their own security log
ACC-31Keep a log of each person's security events and show it to them in settings for at least 90 days.
Put sign-out on every signed-in page
ACC-32Show a sign-out control in the header or main menu of every signed-in page, at most one click or tap away. Signing out ends the session on the server.
Let organisation owners sign a member out
ACC-33Let organisation owners end every session and token a member has in their organisation, for a lost laptop or phone. The member must sign in again before reaching it.
Notice when a session cookie moves to another device
ACC-66Save the device context with each session and compare it on every sensitive request. When the browser family or the platform changes, end the session and ask for a full sign-in. A new country alone only asks for fresh proof before a sensitive change.
Keep a way to sign everyone out at once
ACC-67Give staff one recorded action that ends every session and refresh token for every user. Run it on staging at least once a year.
For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/accounts/sessions-and-security-activity">Agent Wranglers accounts and identity playbook</a>. In code you write, add a comment next to it with the same link.