---
title: "TrendingTech Daily — Authentication & Scopes Guide (auth.md)"
description: "Keyless public access posture and optional OAuth 2.0 + PKCE (S256) scoped permissions for AI agents integrating with TrendingTech Daily."
canonical: https://www.trendingtechdaily.com/auth.md
last-updated: 2026-11-30
---

# Authentication & Authorization (`auth.md`)

TrendingTech Daily is designed for **zero-friction agent onboarding** first, with optional OAuth 2.0 + PKCE (`S256`) scoped delegation when operating on behalf of an authenticated organization or user.

## 1. Keyless Public Tier (Default — Recommended for Agents)

No API key, account registration, or Bearer token is required for:

- **Product MCP Server**: `POST https://www.trendingtechdaily.com/api/mcp`
- **Docs MCP Server**: `POST https://www.trendingtechdaily.com/api/docs/mcp`
- **REST API v1 Read Endpoints**: `GET /api/v1/status`, `GET /api/v1/articles`, `GET /api/v1/articles/{slug}`, `GET /api/v1/ai-tools`, `GET /api/v1/watchlist`
- **Sandbox Environment**: `https://www.trendingtechdaily.com/api/sandbox/v1/*` (dry-run mode for safe testing without mutating live data)
- **NLWeb Search**: `GET/POST https://www.trendingtechdaily.com/ask`

```bash
curl -sS "https://www.trendingtechdaily.com/api/v1/articles?limit=3"
```

## 2. Optional OAuth 2.0 + PKCE (`S256`) Discovery Metadata

Agents that manage delegated user credentials can discover endpoints via standard RFC 8414, OpenID Connect, and RFC 9728 manifests:

- **OpenID Connect Discovery**: `https://www.trendingtechdaily.com/.well-known/openid-configuration`
- **OAuth 2.0 Authorization Server (RFC 8414)**: `https://www.trendingtechdaily.com/.well-known/oauth-authorization-server`
- **OAuth 2.0 Protected Resource (RFC 9728)**: `https://www.trendingtechdaily.com/.well-known/oauth-protected-resource`
- **Dynamic Client Registration**: `POST https://www.trendingtechdaily.com/api/oauth/register`
- **Authorization Endpoint**: `GET https://www.trendingtechdaily.com/api/oauth/authorize`
- **Token Endpoint**: `POST https://www.trendingtechdaily.com/api/oauth/token`
- **JWKS Endpoint**: `GET https://www.trendingtechdaily.com/api/oauth/jwks`

## 3. Scoped Permissions

Request the minimum scope required for the user's task:

| Scope | Access Level | Permitted Operations |
| --- | --- | --- |
| `articles:read` | Read-only | List, search, and read English & Hebrew articles and async briefings |
| `ai_tools:read` | Read-only | Search and inspect curated AI Tools Directory entries |
| `watchlist:read` | Read-only | Read semiconductor, cloud, and AI equity watchlists |
| `newsletter:write` | Consequential write | Subscribe or update weekly newsletter preferences |

## 4. Walkthrough: Dynamic Registration + PKCE Flow

1. **Register client**: `POST https://www.trendingtechdaily.com/api/oauth/register` with `{"redirect_uris":["http://127.0.0.1:8787/callback"]}`.
2. **Generate PKCE S256 verifier & challenge**: Redirect user to `/api/oauth/authorize?response_type=code&client_id=<id>&redirect_uri=<uri>&scope=articles:read&code_challenge=<sha256_base64url>&code_challenge_method=S256`.
3. **Exchange authorization code**: `POST https://www.trendingtechdaily.com/api/oauth/token` with `grant_type=authorization_code`, `code`, and `code_verifier`.
4. **Send Bearer header**: Include `Authorization: Bearer <access_token>` on `/api/v1/*` requests.
