# bbauth > bbauth is Strake Jesuit's "Sign in with Blackbaud" (mySJ) service: a standards-compliant OpenID Connect provider at https://bbauth.jesuit.app, in front of the school's single Blackbaud Core SSO entry. Apps integrate as ordinary OIDC clients (authorization code + PKCE S256). Apps never handle Blackbaud tokens or Secret Keys and need no Blackbaud console entry. Key facts for agents: - Issuer: `https://bbauth.jesuit.app`. Match it exactly, with no trailing slash. - Discovery: https://bbauth.jesuit.app/.well-known/openid-configuration - Endpoints: - authorize `/authorize` (GET or form POST) - token `/token` (form POST) - userinfo `/userinfo` - JWKS `/.well-known/jwks.json` - logout `/end_session` - health `/healthz` - `response_type=code` only. PKCE S256 is required. Scope is `openid email profile`, and `openid` is required. - Token endpoint authentication: `client_secret_basic`, `client_secret_post`, or `none` for public clients. - ID tokens are RS256 with a `kid`. Every redirect back to the app carries `iss` (RFC 9207). - Lifetimes: the authorization code lasts 60 s and is single use. ID and access tokens last 600 s. - **There are no refresh tokens.** `offline_access` is ignored, and `prompt=none` returns `login_required`. Apps must start their own session at the callback. - Claims, always present whatever the scope (empty ones are left out): - `sub`: the Blackbaud user ID, as a string. Key users on this. - `email`: lowercased and verified. - `email_verified` (always true), `name`, `given_name`, `family_name`, `preferred_username` - `bb_user_id` (same as `sub`), `bb_host_id`, `bb_issuer` - bbauth sends no roles or groups. It admits anyone Blackbaud signs in, so authorization is the app's job. - Redirect URIs must match exactly. They must be https, except http on localhost, 127.0.0.1 or [::1]. - Registration is a pull request to the internal GitHub repo Strake-Jesuit/bbauth: - Run `bun run client:new --id --name "" --owner --type confidential|public --redirect-uri [--post-logout-redirect-uri ] [--allowed-origin ] [--allowed-email-domain ]`. - The client secret is printed once and only its hash is committed. Never commit or paste the secret. - The client works after the PR is merged and deployed. - Logout: bbauth keeps no session of its own, and Blackbaud signs users straight back in. After clearing the app session, send the browser to `/end_session?client_id=`. On shared devices, leave out `post_logout_redirect_uri` so the user is told to sign out of Blackbaud too. - Migration from Google sign-in: the Blackbaud profile email may differ from the Google email (for example, students at @mail.strakejesuit.org). Verify with real accounts before cutover. ## Docs - [Integration guide](https://github.com/Strake-Jesuit/bbauth/blob/main/docs/integrate.md): start here. It has a summary, a decision tree, an 8-step checklist, questions to ask the human, a common errors table and migration notes. - [Claims reference](https://github.com/Strake-Jesuit/bbauth/blob/main/docs/claims.md) - [Client registry and secret rotation](https://github.com/Strake-Jesuit/bbauth/blob/main/docs/clients.md) - [Security model](https://github.com/Strake-Jesuit/bbauth/blob/main/docs/security.md) ## Recipes - [Supabase Auth](https://github.com/Strake-Jesuit/bbauth/blob/main/docs/recipes/supabase.md): custom OIDC provider `custom:bbauth`, callback `https://.supabase.co/auth/v1/callback` - [Base44](https://github.com/Strake-Jesuit/bbauth/blob/main/docs/recipes/base44.md): app SSO with a custom OIDC provider, callback `https://app.base44.com/api/apps//auth/sso/callback`. Turn offline access off. - [Python, standard library only](https://github.com/Strake-Jesuit/bbauth/blob/main/docs/recipes/python-stdlib.md) - [TypeScript server (Cloudflare Workers, Node, Deno, Bun)](https://github.com/Strake-Jesuit/bbauth/blob/main/docs/recipes/typescript-server.md) - [SPA with no backend (public client)](https://github.com/Strake-Jesuit/bbauth/blob/main/docs/recipes/spa-public-client.md) - [Auth.js, Convex, openid-client, Authlib and other libraries](https://github.com/Strake-Jesuit/bbauth/blob/main/docs/recipes/other-oidc-libraries.md) ## Examples - [bbauth-client.ts](https://github.com/Strake-Jesuit/bbauth/blob/main/examples/typescript/bbauth-client.ts): a single-file TypeScript client whose only dependency is jose - [worker-example.ts](https://github.com/Strake-Jesuit/bbauth/blob/main/examples/typescript/worker-example.ts): a complete Cloudflare Worker - [bbauth_client.py](https://github.com/Strake-Jesuit/bbauth/blob/main/examples/python-stdlib/bbauth_client.py): a single-file Python 3.9+ client using only the standard library - [example_app.py](https://github.com/Strake-Jesuit/bbauth/blob/main/examples/python-stdlib/example_app.py): a complete `http.server` app ## Optional - [Agent skill](https://github.com/Strake-Jesuit/bbauth/blob/main/skills/bbauth/SKILL.md): install with `npx skills add Strake-Jesuit/bbauth --skill bbauth -a claude-code`, or copy it to `.claude/skills/bbauth/SKILL.md` - [Architecture](https://github.com/Strake-Jesuit/bbauth/blob/main/docs/architecture.md) - [Operations](https://github.com/Strake-Jesuit/bbauth/blob/main/docs/operations.md)