Guides
Connect ID
Sign people in with OpenID Connect — discovery, authorization code with PKCE, scopes, tokens and userinfo.
Connect ID is an OpenID Connect provider. Any OIDC library works with its discovery document:
https://api.didconnect.xyz/.well-known/openid-configurationRegister a client
Create an OAuth client in the dashboard: its redirect URIs, its type (public for a single-page or
mobile application, confidential for a server) and the scopes it may ask for. You get a
client_id, and a client_secret for a confidential client.
Authorization code with PKCE
GET https://api.didconnect.xyz/id/oauth/authorize
?client_id=dcid_…
&redirect_uri=https://app.harborlending.com/callback
&response_type=code
&scope=openid profile identity:verified
&state=…
&code_challenge=…
&code_challenge_method=S256The person signs in, sees the scopes and consents. They come back to redirect_uri with code
and state. Exchange the code:
curl https://api.didconnect.xyz/id/oauth/token \
-H 'Content-Type: application/json' \
-d '{ "grant_type": "authorization_code", "code": "…", "redirect_uri": "https://app.harborlending.com/callback",
"client_id": "dcid_…", "client_secret": "…", "code_verifier": "…" }'The answer has access_token, id_token, refresh_token, expires_in and scope. The sub
of the ID token is stable for the person.
Scopes
| Scope | Claims |
|---|---|
openid | Required. sub |
profile | country_code, subject_type (person or business) |
email:hash, phone:hash | A hash of the verified email or phone, to match an existing account without receiving the value |
identity:verified | kyc_status and kyc_level |
identity:country, identity:document_type | The country and type of the verified document |
kyb:verified | kyb_status and kyb_level of a business |
wallet:read | The crypto wallets the person linked, with their chain and address |
connection:grant | Links the person to your platform during sign-in: you can then start verifications and proof requests for them |
Userinfo and revocation
GET /id/oauth/userinfo with Authorization: Bearer <access_token> answers the claims of the
granted scopes. POST /id/oauth/revoke with { token, client_id, client_secret? } revokes a token.
Sign-in settings
GET /id/auth-settings answers the sign-in methods enabled for your clients (passkey, email code,
phone code) and the session policy (refresh token lifetime, idle timeout).

