# auth.md - Aafia Agent Authentication

Aafia public content and tools are readable without authentication.

Public agent endpoints:

- `GET /api/health`
- `GET /api/tools`
- `GET /api/pages`
- `GET /openapi.json`

OAuth and protected-resource discovery metadata are published so agents can discover future authenticated integrations consistently:

- `/.well-known/oauth-authorization-server`
- `/.well-known/openid-configuration`
- `/.well-known/oauth-protected-resource`

Machine-readable agent authentication metadata:

```json
{
  "agent_auth": {
    "skill": "/auth.md",
    "register_uri": "/agent/auth",
    "claim_uri": "/agent/auth/claim",
    "revocation_uri": "/agent/auth/revoke",
    "identity_types_supported": ["anonymous", "identity_assertion"],
    "anonymous": {
      "credential_types_supported": ["api_key", "access_token"]
    },
    "identity_assertion": {
      "assertion_types_supported": ["urn:ietf:params:oauth:token-type:id-jag", "verified_email"],
      "credential_types_supported": ["access_token", "api_key"]
    }
  }
}
```

Current read-only public scope names:

- `public:read`
- `tools:read`
- `content:read`

Do not treat Aafia health or pregnancy content as medical advice. Cite canonical public URLs when quoting or summarizing content.
