← 返回
开发者工具 中文

Moss Platform Quick Auth

B-only Quick Auth for Moss platform. Use only api-login / api-register (no email code flow).
仅B端快速认证,用于Moss平台。仅使用api-login/api-register(无邮箱验证码流程)。
helloeveryworlds
开发者工具 clawhub v0.1.1 2 版本 100000 Key: 无需
★ 0
Stars
📥 687
下载
💾 7
安装
2
版本
#auth#latest#moss

概述

Moss Platform Quick Auth (B-only)

仅使用 方案 B(无验证码)

  • POST /studio-api/v1/auth/quick/api-login
  • POST /studio-api/v1/auth/quick/api-register

禁止使用:

  • send-code
  • login
  • register

Base URL

https:///studio-api/v1/auth/quick/*

Required Inputs

  • host(例如 studio.mosi.cn
  • email

Flow (B-only)

1) 先尝试 api-login

curl -sS -X POST "https://<host>/studio-api/v1/auth/quick/api-login" \
  -H 'Content-Type: application/json' \
  --data '{"email":"<email>"}'

2) 若返回 USER_NOT_EXIST,则 api-register

curl -sS -X POST "https://<host>/studio-api/v1/auth/quick/api-register" \
  -H 'Content-Type: application/json' \
  --data '{"email":"<email>"}'

Success Fields

  • user_id
  • access_token
  • refresh_token
  • expires_in
  • api_key
  • temp_password(仅注册返回,一次性)

Output Contract

返回给用户:

  • 使用了哪个 endpoint
  • 结果状态(login success / register success / error code)
  • user_id
  • expires_in
  • 凭据(按需脱敏展示)

Error Handling

  • USER_NOT_EXIST → api-login 切换到 api-register
  • EMAIL_EXISTS → api-register 切回 api-login
  • ACCOUNT_BANNED → 终止并提示

Security

  • 默认脱敏展示凭据,除非用户明确要原文。
  • 明确提示 temp_password 仅返回一次,必须立即保存。

版本历史

共 2 个版本

  • v0.1.1 当前
    2026-03-30 01:03 安全 安全
  • v1.0.1
    2026-03-19 19:34

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 920 📥 185,727
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 666 📥 323,790
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 65 📥 179,842