返回顶部
🇺🇸 English
🇨🇳 简体中文
🇨🇳 繁體中文
🇺🇸 English
🇯🇵 日本語
🇰🇷 한국어
🇫🇷 Français
🇩🇪 Deutsch
🇪🇸 Español
🇷🇺 Русский
a

a2a-market-google-oauth

Handle Google OAuth login, account linking, and session bootstrap for A2A market users and operators. Use when implementing identity login endpoints, callback verification, and secure token/session lifecycle.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.2.0
安全检测
已通过
154
下载量
0
收藏
概述
安装方式
版本历史

a2a-market-google-oauth

# a2a-Market Google OAuth Create a stable OAuth integration shell for buyer and merchant sign-in. Current status: publish-ready scaffold. Keep flows explicit and deterministic before full SSO hardening. ## Scope - Implement Google OAuth authorization code flow. - Link external identity to internal Agent/Operator profile. - Bootstrap session token and refresh workflow after callback. ## Suggested Project Layout - `app/integrations/oauth/google_client.py` - `app/interfaces/api/auth_routes.py` - `app/application/services/session_service.py` - `app/protocol/identity/user_identity_mapper.py` ## Minimum Contracts (MVP P0) 1. `GET /auth/google/start` builds state + redirect URL. 2. `GET /auth/google/callback` validates state and exchanges code. 3. `upsert_identity(provider, provider_user_id, email)` returns internal principal id. 4. `create_session(principal_id)` returns short-lived access token and refresh token. ## Security Baseline - Validate `state` and `nonce` against server-side cache. - Reject callback if issuer/audience do not match configuration. - Store only hashed refresh tokens and rotate on use. ## Events - Emit login event to audit log stream. - Emit session-created event for WebSocket presence bootstrap. ## Implementation Backlog - Add account merge flow for duplicate emails across providers. - Add step-up verification for risky sessions. ## Runtime Implementation - Status: implemented in local runtime package. - Primary code paths: - `runtime/src/integrations/oauth/google-oauth-service.js` - Validation: covered by `runtime/tests` and `npm test` in `runtime/`.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 a2a-market-google-oauth-1776162782 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 a2a-market-google-oauth-1776162782 技能

通过命令行安装

skillhub install a2a-market-google-oauth-1776162782

下载 Zip 包

⬇ 下载 a2a-market-google-oauth v0.2.0

文件大小: 1.62 KB | 发布时间: 2026-4-17 13:53

v0.2.0 最新 2026-4-17 13:53
sync runtime implementation and validation coverage

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部