OpenID Connect
The protocol a relying party speaks to sign an agent in: discovery, keys, authorization, the code exchange and userinfo. Served on the issuer's own host, to any OpenID Connect client.
Discover the provider
GET/.well-known/openid-configuration
Access public: no credential.
OpenID Connect discovery: the issuer, its endpoints and what it supports. Cacheable for 300 seconds.
Sign in with Doorman protocol operation, served on the issuer https://id.doorman.example and on no other host. It takes no API key, app token, console session or cookie. See Sign in with Doorman.
Part of Sign in with Doorman, which a deployment switches on. Where it is off this route answers 404 not_found, and features.signIn of GET /v1/me is false.
Answers 200: The provider's metadata.
Response 200: SignInDiscovery
OpenID Connect discovery for Sign in with Doorman.
issuerstringrequiredauthorization_endpointstringrequiredtoken_endpointstringrequireduserinfo_endpointstringrequiredjwks_uristringrequiredresponse_types_supported"code"[]requiredresponse_modes_supported"query"[]requiredgrant_types_supported"authorization_code"[]requiredsubject_types_supported"public"[]requiredid_token_signing_alg_values_supported"ES256"[]requiredscopes_supported("openid" | "email" | "profile" | "owner_profile" | "owner_email")[]requiredclaims_supported("sub" | "actor_type" | "email" | "email_verified" | "name" | "owner_sub" | "owner_name" | "owner_email" | "owner_email_verified" | "iss" | "aud" | "iat" | "exp" | "auth_time" | "jti" | "nonce")[]requiredtoken_endpoint_auth_methods_supported("client_secret_basic" | "client_secret_post" | "none")[]requiredcode_challenge_methods_supported"S256"[]requiredauthorization_response_iss_parameter_supportedtruerequiredclient_id_metadata_document_supportedtruerequiredrequest_parameter_supportedfalserequiredrequest_uri_parameter_supportedfalserequiredclaims_parameter_supportedfalserequired
Errors
| Status | Error | Meaning |
|---|---|---|
| 404 | not_found | No such resource for this caller, or no such route. |
| 500 | internal_error | Something went wrong on the server. |
{
"issuer": "https://id.doorman.example",
"authorization_endpoint": "https://id.doorman.example/sign-in/authorize",
"token_endpoint": "https://id.doorman.example/sign-in/token",
"userinfo_endpoint": "https://id.doorman.example/sign-in/userinfo",
"jwks_uri": "https://id.doorman.example/sign-in/jwks.json",
"response_types_supported": [
"code"
],
"response_modes_supported": [
"query"
],
"grant_types_supported": [
"authorization_code"
],
"subject_types_supported": [
"public"
],
"id_token_signing_alg_values_supported": [
"ES256"
],
"scopes_supported": [
"openid",
"email",
"profile",
"owner_profile",
"owner_email"
],
"claims_supported": [
"sub",
"actor_type",
"email",
"email_verified",
"name",
"owner_sub",
"owner_name",
"owner_email",
"owner_email_verified",
"iss",
"aud",
"iat",
"exp",
"auth_time",
"jti",
"nonce"
],
"token_endpoint_auth_methods_supported": [
"client_secret_basic",
"client_secret_post",
"none"
],
"code_challenge_methods_supported": [
"S256"
],
"authorization_response_iss_parameter_supported": true,
"client_id_metadata_document_supported": true,
"request_parameter_supported": false,
"request_uri_parameter_supported": false,
"claims_parameter_supported": false
}curl -s "https://id.doorman.example/.well-known/openid-configuration"const response = await fetch("https://id.doorman.example/.well-known/openid-configuration", {
headers: {
},
redirect: "manual", credentials: "omit",
});
if (!response.ok) throw new Error(`The API answered ${response.status}.`);
const result = await response.json();import requests
response = requests.get(
"https://id.doorman.example/.well-known/openid-configuration",
headers={},
allow_redirects=False, timeout=30,
)
response.raise_for_status()
result = response.json()Read the signing keys
GET/sign-in/jwks.json
Access public: no credential.
The public keys id tokens are signed with, as a JSON Web Key Set. A new key is published before it signs, and an old one stays until every token it signed has expired. Cacheable for 300 seconds; read it again on a kid it does not list.
Sign in with Doorman protocol operation, served on the issuer https://id.doorman.example and on no other host. It takes no API key, app token, console session or cookie. See Sign in with Doorman.
Part of Sign in with Doorman, which a deployment switches on. Where it is off this route answers 404 not_found, and features.signIn of GET /v1/me is false.
Answers 200: The keys.
Response 200: SignInJwks
The provider's public signing keys. A key is published before it signs and stays published until every token it signed has expired.
keysSignInJwk[]required
Errors
| Status | Error | Meaning |
|---|---|---|
| 404 | not_found | No such resource for this caller, or no such route. |
| 500 | internal_error | Something went wrong on the server. |
curl -s "https://id.doorman.example/sign-in/jwks.json"const response = await fetch("https://id.doorman.example/sign-in/jwks.json", {
headers: {
},
redirect: "manual", credentials: "omit",
});
if (!response.ok) throw new Error(`The API answered ${response.status}.`);
const result = await response.json();import requests
response = requests.get(
"https://id.doorman.example/sign-in/jwks.json",
headers={},
allow_redirects=False, timeout=30,
)
response.raise_for_status()
result = response.json()Exchange a code
POST/sign-in/token
Access public: no credential.
Exchanges a code, once, within 60 seconds of its issue, for an id token and an access token that last 10 minutes. A relying party with a secret presents it with HTTP Basic or in the body, whichever it registered, and is refused the other way (401 invalid_client); a public one sends its PKCE verifier. The inbox, its account and the owner's decision are read again, so a code issued before the owner stopped the address is refused. A code presented twice ends the tokens its first exchange returned. There is no refresh token.
Sign in with Doorman protocol operation, served on the issuer https://id.doorman.example and on no other host. It takes no API key, app token, console session or cookie. See Sign in with Doorman.
Part of Sign in with Doorman, which a deployment switches on. Where it is off this route answers 404 not_found, and features.signIn of GET /v1/me is false.
Request body (application/x-www-form-urlencoded): SignInTokenRequest
A form-encoded code exchange. A relying party with a secret sends it with HTTP Basic or in the body; a public one sends the PKCE verifier. Other fields are ignored.
grant_type"authorization_code"requiredcodestringrequiredredirect_uristringrequiredclient_idstringoptionalclient_secretstringoptionalcode_verifierstringoptional
Answers 200: The id token and the access token.
Response 200: SignInTokens
The id token, and an access token for the userinfo endpoint. There is no refresh token: a longer session is the relying party's own.
access_tokenstringrequiredtoken_type"Bearer"requiredexpires_inintegerrequiredid_tokenstringrequiredAn ES256 JWT. Check its signature against the published keys, and its
iss,aud,expandnonce.scopestringrequiredWhat was granted, which may be less than was asked: who owns the agent is told only where the owner allowed it.
Answers 400: The request or the code was refused.
Response 400: SignInProtocolError
A protocol error, distinct from the Inbox API's error envelope: the code, and a fixed sentence when one helps. The sentence is written by the provider and never carries text from the request.
error"invalid_request" | "invalid_client" | "invalid_grant" | "invalid_scope" | "unauthorized_client" | "unsupported_grant_type" | "unsupported_response_type" | "access_denied" | "login_required" | "interaction_required" | "request_not_supported" | "request_uri_not_supported" | "registration_not_supported" | "invalid_token" | "invalid_client_metadata" | "temporarily_unavailable" | "server_error"requirederror_descriptionstringoptional
Answers 401: The relying party could not be authenticated.
Response 401: SignInProtocolError
A protocol error, distinct from the Inbox API's error envelope: the code, and a fixed sentence when one helps. The sentence is written by the provider and never carries text from the request.
error"invalid_request" | "invalid_client" | "invalid_grant" | "invalid_scope" | "unauthorized_client" | "unsupported_grant_type" | "unsupported_response_type" | "access_denied" | "login_required" | "interaction_required" | "request_not_supported" | "request_uri_not_supported" | "registration_not_supported" | "invalid_token" | "invalid_client_metadata" | "temporarily_unavailable" | "server_error"requirederror_descriptionstringoptional
Answers 429: Too many requests. Try again after the time Retry-After gives.
Response 429: SignInProtocolError
A protocol error, distinct from the Inbox API's error envelope: the code, and a fixed sentence when one helps. The sentence is written by the provider and never carries text from the request.
error"invalid_request" | "invalid_client" | "invalid_grant" | "invalid_scope" | "unauthorized_client" | "unsupported_grant_type" | "unsupported_response_type" | "access_denied" | "login_required" | "interaction_required" | "request_not_supported" | "request_uri_not_supported" | "registration_not_supported" | "invalid_token" | "invalid_client_metadata" | "temporarily_unavailable" | "server_error"requirederror_descriptionstringoptional
Errors
| Status | Error | Meaning |
|---|---|---|
| 404 | not_found | No such resource for this caller, or no such route. |
| 500 | internal_error | Something went wrong on the server. |
{
"error": "invalid_grant"
}{
"error": "invalid_grant"
}{
"error": "invalid_grant"
}curl -s -X POST "https://id.doorman.example/sign-in/token" \
--data-urlencode 'grant_type=authorization_code' \
--data-urlencode 'code=replace-with-the-code-from-the-callback' \
--data-urlencode 'redirect_uri=https://app.example.net/auth/callback'const response = await fetch("https://id.doorman.example/sign-in/token", {
method: "POST",
headers: {
"content-type": "application/x-www-form-urlencoded",
},
redirect: "manual", credentials: "omit",
body: new URLSearchParams({
"grant_type": "authorization_code",
"code": "replace-with-the-code-from-the-callback",
"redirect_uri": "https://app.example.net/auth/callback"
}),
});
if (!response.ok) throw new Error(`The API answered ${response.status}.`);
const result = await response.json();import requests
response = requests.post(
"https://id.doorman.example/sign-in/token",
headers={},
data={
"grant_type": "authorization_code",
"code": "replace-with-the-code-from-the-callback",
"redirect_uri": "https://app.example.net/auth/callback",
},
allow_redirects=False, timeout=30,
)
response.raise_for_status()
result = response.json()Read the signed-in address
GET/sign-in/userinfo
Access sign_in: the access token a relying party was issued with a sign-in, presented to the issuer; no API key, app token or console session is accepted.
The claims about the address an access token was issued for, read again from live state: the address, its name and, where the owner allows it now, who owns it. Authenticated with the access token of the code exchange, never with an API credential. An address that was deleted or stopped since answers 401.
Sign in with Doorman protocol operation, served on the issuer https://id.doorman.example and on no other host. It takes no API key, app token, console session or cookie. See Sign in with Doorman.
Part of Sign in with Doorman, which a deployment switches on. Where it is off this route answers 404 not_found, and features.signIn of GET /v1/me is false.
Answers 200: The claims the granted scopes allow, as they are now.
Response 200: SignInUserInfo
The claims about the signed-in address, read again from live state on every call.
substringrequiredThe address's subject: the same at every relying party, and a new one if the address is ever given up and issued again. Example:
f0Jx2kQp9wLr7TzV3mYb8nHc5dGs1aKe4uWq6oPi0Agactor_type"agent"requiredAlways
agent: the one signing in is software acting for its owner.emailstringoptionalemail: the address. Example:concierge@doorman.exampleemail_verifiedtrueoptionalnamestringoptionalprofile: the address's display name, when it has one.owner_substringoptionalprofile: who owns the agent, as an identifier that is different at every relying party.owner_namestringoptionalowner_profile, where the owner allowed it: the owner's name.owner_emailstringoptionalowner_email, where the owner allowed it: the owner's own address.owner_email_verifiedtrueoptional
Answers 401: The access token is missing, unknown, expired or ended.
Response 401: SignInProtocolError
A protocol error, distinct from the Inbox API's error envelope: the code, and a fixed sentence when one helps. The sentence is written by the provider and never carries text from the request.
error"invalid_request" | "invalid_client" | "invalid_grant" | "invalid_scope" | "unauthorized_client" | "unsupported_grant_type" | "unsupported_response_type" | "access_denied" | "login_required" | "interaction_required" | "request_not_supported" | "request_uri_not_supported" | "registration_not_supported" | "invalid_token" | "invalid_client_metadata" | "temporarily_unavailable" | "server_error"requirederror_descriptionstringoptional
Response header WWW-Authenticate: Bearer error="invalid_token".
Answers 429: Too many requests. Try again after the time Retry-After gives.
Response 429: SignInProtocolError
A protocol error, distinct from the Inbox API's error envelope: the code, and a fixed sentence when one helps. The sentence is written by the provider and never carries text from the request.
error"invalid_request" | "invalid_client" | "invalid_grant" | "invalid_scope" | "unauthorized_client" | "unsupported_grant_type" | "unsupported_response_type" | "access_denied" | "login_required" | "interaction_required" | "request_not_supported" | "request_uri_not_supported" | "registration_not_supported" | "invalid_token" | "invalid_client_metadata" | "temporarily_unavailable" | "server_error"requirederror_descriptionstringoptional
Errors
| Status | Error | Meaning |
|---|---|---|
| 404 | not_found | No such resource for this caller, or no such route. |
| 500 | internal_error | Something went wrong on the server. |
{
"sub": "f0Jx2kQp9wLr7TzV3mYb8nHc5dGs1aKe4uWq6oPi0Ag",
"actor_type": "agent",
"email": "concierge@doorman.example",
"email_verified": true
}{
"error": "invalid_grant"
}{
"error": "invalid_grant"
}curl -s "https://id.doorman.example/sign-in/userinfo" \
-H "authorization: Bearer dst_..."const response = await fetch("https://id.doorman.example/sign-in/userinfo", {
headers: {
"authorization": "Bearer dst_...",
},
redirect: "manual", credentials: "omit",
});
if (!response.ok) throw new Error(`The API answered ${response.status}.`);
const result = await response.json();import requests
response = requests.get(
"https://id.doorman.example/sign-in/userinfo",
headers={"authorization": "Bearer dst_..."},
allow_redirects=False, timeout=30,
)
response.raise_for_status()
result = response.json()Read the signed-in address with POST
POST/sign-in/userinfo
Access sign_in: the access token a relying party was issued with a sign-in, presented to the issuer; no API key, app token or console session is accepted.
The same answer as the GET, for OpenID Connect clients that send POST. The access token goes in the Authorization header.
Sign in with Doorman protocol operation, served on the issuer https://id.doorman.example and on no other host. It takes no API key, app token, console session or cookie. See Sign in with Doorman.
Part of Sign in with Doorman, which a deployment switches on. Where it is off this route answers 404 not_found, and features.signIn of GET /v1/me is false.
Answers 200: The claims the granted scopes allow, as they are now.
Response 200: SignInUserInfo
The claims about the signed-in address, read again from live state on every call.
substringrequiredThe address's subject: the same at every relying party, and a new one if the address is ever given up and issued again. Example:
f0Jx2kQp9wLr7TzV3mYb8nHc5dGs1aKe4uWq6oPi0Agactor_type"agent"requiredAlways
agent: the one signing in is software acting for its owner.emailstringoptionalemail: the address. Example:concierge@doorman.exampleemail_verifiedtrueoptionalnamestringoptionalprofile: the address's display name, when it has one.owner_substringoptionalprofile: who owns the agent, as an identifier that is different at every relying party.owner_namestringoptionalowner_profile, where the owner allowed it: the owner's name.owner_emailstringoptionalowner_email, where the owner allowed it: the owner's own address.owner_email_verifiedtrueoptional
Answers 401: The access token is missing, unknown, expired or ended.
Response 401: SignInProtocolError
A protocol error, distinct from the Inbox API's error envelope: the code, and a fixed sentence when one helps. The sentence is written by the provider and never carries text from the request.
error"invalid_request" | "invalid_client" | "invalid_grant" | "invalid_scope" | "unauthorized_client" | "unsupported_grant_type" | "unsupported_response_type" | "access_denied" | "login_required" | "interaction_required" | "request_not_supported" | "request_uri_not_supported" | "registration_not_supported" | "invalid_token" | "invalid_client_metadata" | "temporarily_unavailable" | "server_error"requirederror_descriptionstringoptional
Response header WWW-Authenticate: Bearer error="invalid_token".
Answers 429: Too many requests. Try again after the time Retry-After gives.
Response 429: SignInProtocolError
A protocol error, distinct from the Inbox API's error envelope: the code, and a fixed sentence when one helps. The sentence is written by the provider and never carries text from the request.
error"invalid_request" | "invalid_client" | "invalid_grant" | "invalid_scope" | "unauthorized_client" | "unsupported_grant_type" | "unsupported_response_type" | "access_denied" | "login_required" | "interaction_required" | "request_not_supported" | "request_uri_not_supported" | "registration_not_supported" | "invalid_token" | "invalid_client_metadata" | "temporarily_unavailable" | "server_error"requirederror_descriptionstringoptional
Errors
| Status | Error | Meaning |
|---|---|---|
| 404 | not_found | No such resource for this caller, or no such route. |
| 500 | internal_error | Something went wrong on the server. |
{
"sub": "f0Jx2kQp9wLr7TzV3mYb8nHc5dGs1aKe4uWq6oPi0Ag",
"actor_type": "agent",
"email": "concierge@doorman.example",
"email_verified": true
}{
"error": "invalid_grant"
}{
"error": "invalid_grant"
}curl -s -X POST "https://id.doorman.example/sign-in/userinfo" \
-H "authorization: Bearer dst_..."const response = await fetch("https://id.doorman.example/sign-in/userinfo", {
method: "POST",
headers: {
"authorization": "Bearer dst_...",
},
redirect: "manual", credentials: "omit",
});
if (!response.ok) throw new Error(`The API answered ${response.status}.`);
const result = await response.json();import requests
response = requests.post(
"https://id.doorman.example/sign-in/userinfo",
headers={"authorization": "Bearer dst_..."},
allow_redirects=False, timeout=30,
)
response.raise_for_status()
result = response.json()
