CAIRLDocs
Guides

OAuth Integration for Your Site

Integrate CAIRL sign-in, authorization, and consent flows into your site.

OAuth Integration for Your Site

This guide covers the site-side setup and authorization flow at a high level.

Prerequisites

  • A CAIRL account with a business facet (/home/facets/new?type=business)
  • Registered callback URL(s) on /home/f/{slug}/connect
  • Test credentials from /home/f/{slug}/keys; live credentials once funds are loaded

Authorization Flow

  1. Redirect the user to the CAIRL authorization endpoint with wire scopes such as age:18+.
  2. The user authenticates and grants consent.
  3. CAIRL redirects to your callback with an authorization code.
  4. Exchange the code for an access token in a server context.
  5. Use the token to read verified claims from userinfo.

Integration Notes

  • Treat callback URL matching as strict.
  • Keep token exchange server-side only.
  • Handle consent denial and expired sessions gracefully.

Next

On this page