# auth.md

You are an agent. Cloudflare is working toward auth.md registration support, including the ID-JAG `identity_assertion` flow. This file exists at `https://cloudflare.com/auth.md` so agents can discover what is coming soon and use supported Cloudflare authentication paths safely today.

## auth.md Registration

Cloudflare does not yet advertise production auth.md registration methods, auth.md Protected Resource Metadata, or agent-auth metadata. Do not mint ID-JAGs or attempt `identity_assertion`, `service_auth`, or `anonymous` auth.md registration against Cloudflare until this file links to production discovery metadata.

When auth.md support launches, this file will point to the authoritative metadata for supported flows, scopes, endpoints, token exchange, errors, and revocation.

## Current Authentication Paths

Use these supported paths today instead of auth.md registration:

- **Wrangler OAuth**: For local development with a Cloudflare account, use `wrangler login`. Documentation: https://developers.cloudflare.com/workers/wrangler/commands/general/#login
- **Cloudflare API tokens**: For scripts, CI/CD, headless tools, and direct API calls, use a scoped API token. Documentation: https://developers.cloudflare.com/fundamentals/api/get-started/create-token/
- **Cloudflare OAuth clients**: For third-party applications that integrate with the Cloudflare API, create a Cloudflare OAuth client. Documentation: https://developers.cloudflare.com/fundamentals/oauth/
- **Temporary accounts**: For unauthenticated agent deployments to Workers, use `wrangler deploy --temporary`. Documentation: https://developers.cloudflare.com/workers/platform/claim-deployments/

Before requesting credentials, check whether the user already has Cloudflare authentication configured through Wrangler or `CLOUDFLARE_API_TOKEN`. Do not ask users to paste API tokens into chat. Read tokens from the environment or a secure secret store at the moment of use, and never print them in logs, commits, pull requests, screenshots, generated docs, or error reports.

## Product Links

- Sign up or sign in: https://dash.cloudflare.com/sign-up/workers-and-pages
- Cloudflare API documentation: https://developers.cloudflare.com/api/
- Developer Platform documentation: https://developers.cloudflare.com/

## Legal

- Terms: https://www.cloudflare.com/terms/
- Privacy: https://www.cloudflare.com/privacypolicy/

## Contact

For Cloudflare product support, use the Cloudflare support portal or product documentation: https://developers.cloudflare.com/support/
