OAuth discovery
Inspect is the protected resource athttps://inspect.dev. Its
RFC 9728 protected-resource metadata
identifies https://clerk.inspect.dev as the authorization server.
Clerk publishes authorization-server and OpenID Connect metadata at:
https://clerk.inspect.dev/.well-known/oauth-authorization-serverhttps://clerk.inspect.dev/.well-known/openid-configuration
Sign in with the Inspect CLI
- Run
inspect login. - The CLI creates a PKCE verifier and challenge and opens the authorization page.
- A human approves the browser flow.
- Verify the session with
inspect account --json.
Scopes and permissions
Supported scopes includeopenid, profile, email, offline_access, and
user:org:read. Request only the scopes needed for the current task. See the
Inspect permission matrix for the
endpoint-to-scope mapping.
Authentication errors
Missing, expired, or invalid credentials return HTTP 401 with a structured Inspect error and aWWW-Authenticate discovery hint. Valid credentials
without sufficient permission return HTTP 403. Follow the response hint and
retry only when the operation is safe.
Append .md to this page URL for a low-overhead Markdown version of the guide.