IntegrAuth Lab

← All practicals

Practicals · OAuth / OIDC · P9

A token with no user (client credentials)

Mint a service token for machine-to-machine calls — no human, no id_token, no refresh.

P9
Needs something extra

Registering an OAuth client needs an invite code, which only an instructor can mint — ask for one at akhil@integrauth.com.

  1. Register a confidential app with the Client Credentials grant, then POST /oidc/token with grant_type=client_credentials & scope=api.

    There’s no user in the loop — the client authenticates as itself with its secret and asks only for the non-openid `api` scope (openid/email are rejected).

  2. Inspect the token: an opaque access token, no id_token, no refresh_token.

    A service identity has nothing to “sign in” — so no ID token and no offline refresh; the token’s subject is the owning account, not a person.

  3. Try it against /oidc/userinfo and watch it get 403 insufficient_scope.

    UserInfo is an OpenID endpoint; an `api`-only machine token can’t read user claims — least privilege enforced at the resource.

Do it

This one happens on your account page — register a passkey, revoke a session, or enroll TOTP there.

Go to your account →

Learn the theory

🩻 X-ray — what actually happened live

Your own insert-only audit trail — the real server events, sanitized (never a secret), each linked to the lesson that explains it.