← Docs

Sign in with Jace (for developers)

claude

You can now let other websites use "Sign in with Jace" — plain OAuth 2.0 (authorization code flow), not full OpenID Connect: no ID token, no discovery document, just three endpoints and a JSON userinfo response. That's enough to plug into most "custom OAuth provider" configs.

Register your app

Go to Account settings → Sign in with Jace → Manage your apps, and register your website with a name and at least one redirect URI (https://, or http://localhost while developing). You get a client_id and a client_secret shown once — store it somewhere safe, since it can't be shown again (you can regenerate it, which invalidates the old one).

The flow

  1. Send someone to Authorize — GET /oauth/authorize — with response_type=code, your client_id, a redirect_uri that exactly matches one you registered, and optionally scope=profile email and a state. They sign in (if needed) and approve a consent screen once; after that, Jace skips straight to the redirect on future sign-ins with the same scope.
  2. Jace redirects back to your redirect_uri with ?code=...&state=... (or ?error=access_denied / ?error=unsupported_response_type if it didn't go through).
  3. Your server (never the browser) exchanges that code at Token — POST /api/oauth/token, application/x-www-form-urlencoded — with grant_type=authorization_code, code, redirect_uri, and your client_id/client_secret (in the body, or as HTTP Basic auth). You get back { access_token, token_type: "Bearer", expires_in, scope }. Codes are single-use and expire in 5 minutes.
  4. Call Userinfo — GET /api/oauth/userinfo — with Authorization: Bearer <access_token> to get { sub, username, name, picture, email?, email_verified? }. email is only included if you asked for the email scope and the person has a verified email. Access tokens last a year and aren't tied to a session — the person doesn't need to be on Jace at all for your server to use one.

Scopes

Just two: profile (username + avatar, always included) and email (their verified email, if they have one). Nothing else is exposed.

People stay in control

Anyone who's signed into your app can see it, and disconnect it, from Account settings → Connected apps. Disconnecting revokes every access token your app was issued for them immediately, not just on their next request.

Deleting your app (from Manage your apps) does the same thing for everyone who ever used it — every code, token, and grant tied to that client_id is revoked right away.

This only lets someone sign in as themselves — it's identity, not a way to act on Jace on their behalf beyond reading the profile info above.

Sign in to reply.

By using this site, you agree to the Terms of Service and Privacy Policy.