Platform sample
Not signed in

Sign in with Platform

This page signs you in with Platform using OpenID Connect, then shows everything Platform told it and what each value is for. It is a working starting point: copy it, change the settings, and build your app on top.

Sign in with Platform

2 PASS

READY and SIGN IN FIRST mean nothing is missing: the card runs when you press its button or sign in. NOT CONFIGURED means a setting has to be added.

P1

Configuration

PASS

What this is

The three values that connect this app to Platform, and the addresses that follow from them. The client secret is a password for the app itself: it is shown here only as set or not set.

Setup required

  • ✓PLATFORM_ISSUER is set to the Platform's address, for example https://platform.example.com.
  • ✓OIDC_CLIENT_ID and OIDC_CLIENT_SECRET are set to the values from Platform's admin page, Applications → Register an application.
  • ✓Platform answers at https://shared-staging.heartwoodguild.com/.well-known/openid-configuration. A 404 there means that Platform has no public address configured (PUBLIC_APP_BASE_URL).
  • ✓The issuer in that document is exactly the one configured here.
  • ✓Platform offers every scope this app asks for (openid profile email roles entitlements).
  • ✓The redirect URI https://agency-oauth-sample.heartwoodguild.com/auth/callback is HTTPS, or on localhost. It must be registered on the client, character for character.
  • ✓OIDC_REDIRECT_URI, if set, is exactly that address. This app builds it from APP_BASE_URL, so a different value there means APP_BASE_URL points somewhere else.

Result

Ready to sign in.

Settings
NameValueWhat it is, and what to use it for
PLATFORM_ISSUER https://shared-staging.heartwoodguild.com The Platform this app signs in against. OIDC_ISSUER is read as the same setting.
OIDC_CLIENT_ID agency-oauth-sample The name this app is registered under.
OIDC_CLIENT_SECRET set (never shown) The app's own password. Sent only to the token endpoint, server to server.
Scopes requested openid profile email roles entitlements Set with OIDC_SCOPES. Ask for the fewest that do the job.
Redirect URI https://agency-oauth-sample.heartwoodguild.com/auth/callback Register this on the client, exactly.
Post-logout redirect URI https://agency-oauth-sample.heartwoodguild.com/signed-out Register this on the client as a post-logout redirect URI.
P2

Discovery document

PASS

What this is

Everything a client needs to know about the provider, published at one well-known address. This app reads every endpoint from here, so the issuer address is the only one it is configured with.

Setup required

  • ✓Platform answers the discovery document.

Request and response

GET https://shared-staging.heartwoodguild.com/.well-known/openid-configuration 200 86 ms
Request
GET https://shared-staging.heartwoodguild.com/.well-known/openid-configuration
accept: application/json
Response
200
content-type: application/json
cache-control: no-store

{
  "issuer": "https://shared-staging.heartwoodguild.com",
  "authorization_endpoint": "https://shared-staging.heartwoodguild.com/mcp-oauth/authorize",
  "token_endpoint": "https://shared-staging.heartwoodguild.com/mcp-oauth/token",
  "registration_endpoint": "https://shared-staging.heartwoodguild.com/mcp-oauth/register",
  "revocation_endpoint": "https://shared-staging.heartwoodguild.com/mcp-oauth/revoke",
  "introspection_endpoint": "https://shared-staging.heartwoodguild.com/mcp-oauth/introspect",
  "jwks_uri": "https://shared-staging.heartwoodguild.com/mcp-oauth/jwks",
  "response_types_supported": [
    "code"
  ],
  "grant_types_supported": [
    "authorization_code",
    "refresh_token"
  ],
  "token_endpoint_auth_methods_supported": [
    "none",
    "client_secret_basic",
    "client_secret_post"
  ],
  "revocation_endpoint_auth_methods_supported": [
    "none",
    "client_secret_basic",
    "client_secret_post"
  ],
  "introspection_endpoint_auth_methods_supported": [
    "client_secret_basic",
    "client_secret_post"
  ],
  "code_challenge_methods_supported": [
    "S256"
  ],
  "scopes_supported": [
    "mcp",
    "openid",
    "profile",
    "email",
    "roles",
    "entitlements"
  ],
  "userinfo_endpoint": "https://shared-staging.heartwoodguild.com/mcp-oauth/userinfo",
  "end_session_endpoint": "https://shared-staging.heartwoodguild.com/mcp-oauth/end-session",
  "subject_types_supported": [
    "public"
  ],
  "id_token_signing_alg_values_supported": [
    "RS256"
  ],
  "claims_supported": [
    "iss",
    "sub",
    "aud",
    "exp",
    "iat",
    "nonce",
    "auth_time",
    "at_hash",
    "act",
    "email",
    "email_verified",
    "name",
    "preferred_username",
    "picture",
    "updated_at",
    "roles",
    "orgs",
    "entitlements"
  ]
}

Result

19 fields published.

NameValueWhat it is, and what to use it for
issuer https://shared-staging.heartwoodguild.com The provider's identity. Every token it issues carries this exact string as iss. Compare it to the issuer you configured. If they differ, stop.
authorization_endpoint https://shared-staging.heartwoodguild.com/mcp-oauth/authorize The page the user's browser is sent to in order to sign in. Build the sign-in link from it.
token_endpoint https://shared-staging.heartwoodguild.com/mcp-oauth/token Where this server swaps the one-time code for tokens, and later refreshes them. Called server to server, with the client secret. Never from the browser.
userinfo_endpoint https://shared-staging.heartwoodguild.com/mcp-oauth/userinfo Answers who the access token belongs to, read live. Call it when you need the user's current details rather than the snapshot in the id_token.
jwks_uri https://shared-staging.heartwoodguild.com/mcp-oauth/jwks The provider's public signing keys. Verify the id_token's signature against these. Fetch them from here; never paste a key into config.
end_session_endpoint https://shared-staging.heartwoodguild.com/mcp-oauth/end-session The page that signs the user out of the provider itself. Send the browser here for "sign out everywhere", not just out of your app.
revocation_endpoint https://shared-staging.heartwoodguild.com/mcp-oauth/revoke Where a client tells the provider a token must stop working. Call it when the user disconnects or signs out.
introspection_endpoint https://shared-staging.heartwoodguild.com/mcp-oauth/introspect Answers whether a token is still live, and what it is for. For a server that receives a token and needs to know if it is still good.
scopes_supported [ "mcp", "openid", "profile", "email", "roles", "entitlements" ] Every permission an app can ask for. Ask for the fewest that do the job.
claims_supported [ "iss", "sub", "aud", "exp", "iat", "nonce", "auth_time", "at_hash", "act", "email", "email_verified", "name", "preferred_username", "picture", "updated_at", "roles", "orgs", "entitlements" ] Every fact about the user the provider is able to state. If a claim is not listed here, the provider will never send it.
registration_endpoint https://shared-staging.heartwoodguild.com/mcp-oauth/register Lets an app register itself with no operator involved. Only MCP connectors (Claude, ChatGPT) use it. A sign-in app is registered by an operator instead.
response_types_supported [ "code" ] The flows the provider runs. code is the authorization-code flow. Use code. It is the only flow that keeps tokens out of the browser.
grant_types_supported [ "authorization_code", "refresh_token" ] The ways a token can be obtained at the token endpoint. authorization_code for sign-in, refresh_token to renew without asking the user again.
token_endpoint_auth_methods_supported [ "none", "client_secret_basic", "client_secret_post" ] How an app may prove its identity when redeeming a code. client_secret_basic for a server-side app like this one.
revocation_endpoint_auth_methods_supported [ "none", "client_secret_basic", "client_secret_post" ] How an app must authenticate to revoke a token. Nothing to configure. The client library handles it.
introspection_endpoint_auth_methods_supported [ "client_secret_basic", "client_secret_post" ] How an app must authenticate to ask about a token. Only apps with a secret may introspect.
code_challenge_methods_supported [ "S256" ] The PKCE methods accepted. S256 means the app proves itself with a hashed secret. Always send a PKCE challenge. Platform refuses a sign-in without one.
subject_types_supported [ "public" ] public means a user has the same sub for every app. Nothing to do. It tells you sub is stable across apps.
id_token_signing_alg_values_supported [ "RS256" ] The signature algorithms the provider signs id_tokens with. Accept only these. Never accept none.

Scopes Platform offers that this app does not ask for: mcp. That is deliberate: ask for the fewest that do the job.

P3

Authorization request

What this is

The link this app sent your browser to. It carries no secret. The three random values in it are what make the answer trustworthy when the browser comes back.

Setup required

  • ○Sign in to see the request that was sent.

Result

Nothing is missing. Sign in at the top of the page.

P4

Token response

What this is

What Platform handed this server in exchange for the one-time code. This exchange happens server to server, with the client secret, so the tokens never pass through the browser.

Setup required

  • ○Sign in to see the tokens.

Result

Nothing is missing. Sign in at the top of the page.

P5

The id_token

What this is

A signed statement from Platform: this user signed in, at this time, for this app. It is three base64 parts joined by dots: a header, the claims, and a signature. Anyone can read the first two, so nothing in it is secret, and nothing in it is trustworthy until the signature and the claims below have been checked.

Setup required

  • ○Sign in to see the claims.

Result

Nothing is missing. Sign in at the top of the page.

P6

id_token validation

What this is

The checks that turn the id_token from a claim into proof. This app creates a session only when every row passes. Skipping any one of them is how sign-in bugs become account takeovers.

Setup required

  • ○Sign in to run the checks.

Result

Nothing is missing. Sign in at the top of the page.

P7

Signing key

What this is

The public key that verified the signature. Platform publishes its current keys at the JWKS address and rotates them, so an app must fetch them from there rather than keep a copy.

Setup required

  • ○Sign in to see which key signed your token.

Result

Nothing is missing. Sign in at the top of the page.

P8

/userinfo

What this is

The same facts about the user, read live with the access token. The id_token is a snapshot from the moment of sign-in; this is the current answer. Its sub must equal the id_token's, or the two are not about the same person.

Setup required

  • ○Sign in to call it.
  • ?Platform answers 200. A 401 here on an older Platform means sign-in-only tokens are not supported yet (it needs release #18758).

Result

Nothing is missing. Sign in at the top of the page.

P9

This app's session

What this is

What the app keeps after sign-in. It is the app's own: it does not end when a token expires, and signing out of the app does not sign the user out of Platform. The browser holds one random cookie and nothing else.

Setup required

  • ○Sign in to create a session.

Result

Nothing is missing. Sign in at the top of the page.

P10

Refresh

What this is

Gets a new access token without sending the user back to sign in. Platform also issues a new refresh token each time and the old one stops working. Using an old refresh token a second time is treated as theft: Platform cancels the whole chain and the user must sign in again. So an app must never retry a refresh that might have succeeded.

Setup required

  • ○Sign in first.
  • ?The token response included a refresh_token. If it did not, tick Issue refresh tokens on the application's Setup tab in Platform and sign in again.

Result

Nothing is missing. Sign in at the top of the page.

P13

Introspect

What this is

Asks Platform whether a token is still live. It is how a server that receives a token from somewhere else checks it. An unknown, expired, revoked or foreign token all get the same answer, active: false, so the endpoint cannot be used to probe for tokens.

Setup required

  • ○Sign in first.

Result

Nothing is missing. Sign in at the top of the page.

P14

Ask for a fresh sign-in

What this is

Before something sensitive, an app can ask Platform to make the user sign in again by adding prompt=login to the request. The request travels through the browser, where the user could remove it, so the app does not take it on trust: it checks that auth_time in the new id_token is recent.

Setup required

  • ○Sign in first.

Result

Nothing is missing. Sign in at the top of the page.

P11

Revoke

What this is

Tells Platform these tokens must stop working now. Use it when a user disconnects your app. The answer is always an empty 200, even for a token that never existed, so the proof is the next call: /userinfo with the revoked token is refused.

Setup required

  • ○Sign in first.

Result

Nothing is missing. Sign in at the top of the page.

P12

Sign out

What this is

There are two sign-outs. "Sign out of this app" forgets the app's session and nothing else: Platform still knows the user, so the next sign-in is one click. "Sign out through Platform" sends the browser to Platform's end-session page, which ends the Platform session too and then returns here.

Setup required

  • ○Sign in first.
  • ✓Platform publishes an end_session_endpoint.
  • ?https://agency-oauth-sample.heartwoodguild.com/signed-out is registered on the client as a post-logout redirect URI. If it is not, the browser stays on Platform's own signed-out page.

Result

Nothing is missing. Sign in at the top of the page.