Sulba
ReviewSign inAccount
Theme
Editor theme
Light
Dark

Intermediate · Shipping full stack

Signing in

Sign the desk's callers in with OpenID Connect: the authorization request with its state, nonce and PKCE challenge; the code exchanged and the ID token checked against the provider's keys; sessions kept in Postgres, as hashes of their tokens; each person's conversations theirs alone; a review of an assistant's sign-in routes; and the app signed in, with its cookies sent only over HTTPS and no change taken from another site.

You build
sign_in.py, then tokens.py, then sessions.py, then store.py, then desk_auth.py, then app.py
Stages
4 Build, 1 Catch, 1 Ship
Time
About 4.5 hours
Runs on
Your machine

Loading the workspace…