- OAuth: RFC 8414/9728 metadata, RFC 7591 dynamic registration, authorization code + PKCE S256 with a consent screen after Gitea login, refresh token rotation; tokens and codes stored hashed; revoke in web - /mcp: stateless Streamable HTTP, Bearer → user; PM tools from @peppa/mcp/manager: projects, goals, tasks, create, move (board semantics, starts agents), inbox, answer/accept — owner-scoped - login keeps ?next= through Gitea OAuth; Settings page with MCP URL and connected apps - 5 new tests (53 e2e total, green); verified on prod as a client: DCR → consent → token → MCP over HTTPS → revoke → 401 - OpenSpec: pep-8 archived into spec remote-mcp Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
17 lines
992 B
Markdown
17 lines
992 B
Markdown
# Tasks: PEP-8
|
||
|
||
## 1. OAuth
|
||
|
||
- [x] 1.1 Таблицы oauth_clients/codes/tokens; core: регистрация, код с PKCE, обмен, refresh с ротацией, проверка access, отзыв; тесты
|
||
- [x] 1.2 Веб: `/.well-known/oauth-authorization-server`, `/.well-known/oauth-protected-resource`, `/oauth/register`, `/oauth/authorize` (согласие), `/oauth/token`; `next` после входа
|
||
|
||
## 2. MCP
|
||
|
||
- [x] 2.1 `@peppa/mcp/manager`: инструменты PM; `/mcp` (401 + WWW-Authenticate, Bearer); тест через MCP-клиент
|
||
- [x] 2.2 Страница «Подключённые приложения» с отзывом
|
||
|
||
## 3. Проверка
|
||
|
||
- [x] 3.1 e2e набор зелёный; выкатка; на проде: DCR → согласие в браузере → токен → MCP-клиент двигает задачу; отзыв → 401
|
||
- [x] 3.2 AGENTS.md + инструкция подключения в ChatGPT; `openspec validate`
|