Aller au contenu

Cloudflare Workers

Ce contenu n’est pas encore disponible dans votre langue.

Deploy stubIdP as a Cloudflare Worker for a globally distributed, zero-maintenance OIDC server backed by D1 persistent storage.

Click the button below. Cloudflare will fork the repository, create a D1 database, and deploy the Worker automatically.

Deploy to Cloudflare

After deployment, override the default client credentials in the Cloudflare dashboard under Workers & Pages → stubidp → Settings → Variables:

VariableDescription
STUBIDP_CLIENT_IDOAuth 2.0 client ID
STUBIDP_CLIENT_SECRETOAuth 2.0 client secret
STUBIDP_REDIRECT_URIAllowed redirect URI
STUBIDP_ISSUER(Optional) Override the issuer URL — auto-detected from the request URL if omitted
Terminal window
cp .dev.vars .dev.vars.local # optional: override vars locally
npm run worker:migrate:local
npm run worker:dev # runs at http://localhost:8787

Discovery URL during local dev: http://localhost:8787/.well-known/openid-configuration