# auth.md

Agent authentication metadata for **Abanob Adel Portfolio** (`abanob.co`).

## Audience

Automated agents that need to **read published portfolio content** or understand how humans administer the CMS.

## Public data (anonymous — no registration)

Published content is available **without authentication** (identity type: `anonymous`, credential: `none`):

| Method | Path | Purpose |
|--------|------|---------|
| GET | `/api/projects` | Published projects (paginated) |
| GET | `/api/projects/{slug}` | One published project |
| GET | `/api/blogs` | Published insights (paginated) |
| GET | `/api/blogs/{slug}` | One published insight |
| GET | `/api/clients` | Client logos catalog |
| GET | `/api/technologies` | Technology logos catalog |
| GET | `/api/project-categories` | Project categories |
| GET | `/api/project-industries` | Industries |
| GET | `/api/blog-categories` | Blog categories |

### OAuth discovery (machine-readable)

| Document | Path |
|----------|------|
| Protected Resource Metadata | `/.well-known/oauth-protected-resource` |
| Authorization Server Metadata | `/.well-known/oauth-authorization-server` |
| OpenID Provider Configuration | `/.well-known/openid-configuration` |
| JWKS | `/.well-known/jwks.json` (empty — no signing keys) |

`authorization_servers` / `issuer` is this site origin. **No access tokens are issued for public data** — call public GET APIs directly. The only tokens this server can issue are for the owner-only Admin MCP (`/mcp/admin`), which requires the site owner's Admin login, a fresh authenticator code and explicit consent.

## Admin (humans only)

| Method | Path | Notes |
|--------|------|-------|
| Browser | `/admin/login` | Email/password → TOTP challenge |
| POST | `/api/auth/login` | Same-origin + cookies |
| POST | `/api/auth/login/totp` | Completes session |

Agents must **not** automate Admin login, scrape `/admin`, or call `/api/admin/*`. Admin auth is **not** OAuth Bearer.

## Contact form

`POST /api/contact` is a public, same-origin form endpoint with rate limiting and a honeypot field named `website`. Prefer the human UI at `/contact`.

## Discovery

- API catalog: `/.well-known/api-catalog`
- Capability catalog: `/.well-known/ai-catalog.json`
- Skills: `/.well-known/agent-skills/index.json`
- Human/agent docs: `/docs/api`
- Crawl policy: `/robots.txt`
- Sitemap: `/sitemap.xml`

## Supported methods

1. **Anonymous public read** — use GET JSON APIs above (no credential).
2. **No agent credential issuance** — this service does not register agents or mint API keys / ID-JAG assertions.

## Credential use

None required for public reads. Do not store or transmit Admin passwords or TOTP codes in agent workflows.
