Tinker Logins and passwords

by Samy (Kondasamy Jayaraman)

Larkspur’s desk and the Guild’s booth.

Chapter 6 of 7

Sign in with another site

Builders want to sign in with their Builders’ Guild account. Larkspur never sees that password; the Guild vouches instead.

This chapter: How does another site vouch for you, and what stops a thief faking it?

About this chapter

You will learn

  • A trip to the other site, a code and a signed token
  • State and PKCE tie the code to you
  • Check the signature and the audience

Words you’ll meet

State
A random value sent out with the sign-in and checked when the browser comes back.
PKCE
Proof Key for Code Exchange: only the site holding a secret verifier can swap the code.
Authorisation code
A short-lived code the other site sends back, to swap for a token.
ID token
A signed note from the other site: who signed in, and for which site.
Audience
The part of an ID token that names the site it was made for.

Step 1 of 6

Larkspur sends Esme to the Guild with a random and a challenge, the hash of a kept secret.

Sign in with the Guild.