# Scriptured auth.md

Authentication and agent registration discovery for **Scriptured** (https://scriptured.app).

## Audience
Automated AI agents, CLI tools, and organization integrations accessing Scriptured APIs or public Scripture study resources.

## Public vs. Authenticated Access
- **Public resources:** Documentation, blog guides (`https://blog.scriptured.app`), and Markdown summaries (`Accept: text/markdown`) require no credentials.
- **Authenticated API:** User and organization endpoints at `https://api.scriptured.app` use Bearer tokens issued via OAuth / session auth.

## OAuth Discovery
- **Protected Resource Metadata:** `https://scriptured.app/.well-known/oauth-protected-resource`
- **Authorization Server Metadata:** `https://scriptured.app/.well-known/oauth-authorization-server`

## Supported Registration & Auth Methods
- **Google OAuth 2.0 (PKCE):** `https://api.scriptured.app/auth/google/login`
- **Verified Email Sign-in:** `https://scriptured.app/login`
- **Bearer Token Usage:** Pass `Authorization: Bearer <token>` on authenticated API requests to `https://api.scriptured.app`.
