# Authentication

Read tools need no account. Sign in to save a verse or an article, or to suggest a change. Nothing is published from the suggest scope. A person publishes a page after review.

The human page is [Connect](/connect). Registration, scopes, and the review queue are [auth.md](/auth.md). Questions go through the [support form](/support).

## Scopes

- `read` — public pages. Read tools also work with no token.
- `hearts` — list, save, and remove saved articles and Bible verses.
- `suggest` — submit a suggestion or a draft article. Nothing is published from this scope.
- `offline_access` — a refresh token.

## Endpoints

| Item | Value |
| --- | --- |
| Issuer | https://apologetics.wiki |
| Authorization | https://apologetics.wiki/oauth/authorize |
| Token | https://apologetics.wiki/oauth/token |
| Registration | https://apologetics.wiki/oauth/register |
| Revocation | https://apologetics.wiki/oauth/revoke |
| JSON Web Key Set | https://apologetics.wiki/.well-known/jwks.json |
| Protected resource | https://apologetics.wiki/.well-known/oauth-protected-resource/mcp |
| ChatGPT protected resource | https://apologetics.wiki/.well-known/oauth-protected-resource/mcp/chatgpt |
| MCP URL | https://apologetics.wiki/mcp |

Use PKCE S256. Redirect URIs may be https, http on a loopback host (127.0.0.1, localhost, or ::1, any port), or `cursor://`, `vscode://`, `vscode-insiders://`, and `claude://`. Other private schemes are refused. The resource for `/mcp` is `https://apologetics.wiki/mcp`. The resource for `/mcp/chatgpt` is `https://apologetics.wiki/mcp/chatgpt`. The authorization server is the site origin, with no trailing slash. A grant requests one MCP resource audience. A JWT that names both is refused. An OIDC token may also name the userinfo audience.

## Lifetimes

| Credential | Lifetime |
| --- | --- |
| Email code | 10 minutes, six digits, single use |
| Access token | 1 hour |
| Refresh token | 30 days |
| Unused dynamic client | 30 days |

## API Keys

OAuth access tokens are JWTs. API keys from `confirm_sign_in` are opaque bearers with the `aw_` prefix. A key is shown once. Send either credential as `Authorization: Bearer`. An invalid bearer is ignored on a read tool.

Each suggestion (suggest_article_change, propose_new_article, suggest_topic) is checked for spam, abuse, and, for a full article, its sources before it joins the review queue. The reply carries gate.verdict: accept (queued), reject (not queued; gate.reasons names each standard not met and how to fix it), needs_explainer (suggest_topic only: a published article is a close match; gate.matches links it, and calling again with explainer, saying what that article does not answer, queues the topic), or unscored (the automatic check was unavailable; the suggestion is queued for a person to review, never dropped). Contributors and admins skip the check.