# Auth, machines and use cases

> Managing users, providers, e-mails and sessions; OAuth clients, tokens, keys and agents; and the use-case map.

Applies to: Sypnia Cloud (paid service).  
Source: https://data.docs.sypnia.com/console/auth-machines-and-use-cases/

For agents: Console auth area: users (search, invite, confirm, ban, delete, list and end sessions), providers (e-mail, Google, GitHub), e-mail provider with test send, templates editor with live preview in each language, session policy, redirect URLs, CAPTCHA. Machines area: OAuth clients (public key or secret, scopes, DPoP required, session policy), PATs, API keys (rotate, revoke), Agents and devices (device-flow sessions, revoke), dynamic client registration toggle and initial access tokens. Use cases area: the map uploaded with npx @sypnia/cases map --upload --project <ref> (count of cases and tables touched; each case with actor, tables read and written, failures), the upload command to copy, and a plain-words explanation of Sypnia Cases linking to cases.sypnia.com; when the project is linked to a Cases map, each upload is also forwarded there as a draft proposal.

## Auth

- **Users**: search by e-mail or id, invite, confirm by hand, ban until a date, delete; open one to see their identities and **sessions**, and end any of them.
- **Providers**: e-mail on or off, Google and GitHub (client id and secret, the callback address to copy).
- **E-mail**: the provider and its credentials, with a **test send** to your own address. A project without one shows a warning with **Configure a provider** and **Enable Google or GitHub**.
- **Templates**: every auth e-mail, in each language, with a **live preview**.
- **Sessions**: the [session policy](https://data.docs.sypnia.com/auth/sessions-and-tokens), with «never» for any limit.
- **Redirect URLs** and **CAPTCHA**.

## Machines

- **OAuth clients**: create one with a public key (paste a JWK, or let the console make a key pair and download the private half once) or with a secret; choose scopes, require DPoP, set its session policy.
- **Personal access tokens**: yours, with scopes and an expiry or none.
- **API keys**: the publishable key and the secret keys, with names; rotate and revoke. The console's own key is protected: it is replaced with **Rotate the console key**, never revoked.
- **Agents and devices**: every session started with the device flow — the agent's name, scopes, last use — and **Revoke**.
- **Dynamic registration** on or off, and initial access tokens for confidential registrations.

## Use cases

The use-case map is made from your code and sent to this project with `npx @sypnia/cases map --upload --project <ref>` ([The map from your code](https://cases.docs.sypnia.com/sypnorm/the-map/)). This tab shows the map last uploaded:

- how many use cases, and how many tables they touch;
- each use case with its actor, the tables it reads and writes, and the failures it can end in;
- the command that uploads it again, ready to copy.

Above it, a short explanation of Sypnia Cases in plain words links to cases.sypnia.com. The map's versions, reviews and links to other products live in [Sypnia Cases](https://cases.docs.sypnia.com/links/data/). When the project is linked to a Cases map, each upload also reaches that map as a draft proposal for the team to review ([The link to Sypnia Cases](https://data.docs.sypnia.com/cloud/endpoints-and-limits#the-link-to-sypnia-cases)).
