auth-web-cloudbase
构建 CloudBase Web 身份验证
Web 团队需要可靠的 CloudBase 身份验证流程,而不是过时的 SDK 模式。此技能会指导提供方检查、会话守卫以及 Web SDK v3 集成。
使用我的智能体安装
将此请求复制给你的智能体,其中包含权威 Skill 页面和清单。
Review the Skillstore skill "auth-web-cloudbase" from https://skillstore.io/skills/tencentcloudbase-auth-web-cloudbase.md and its manifest at https://skillstore.io/api/skills/tencentcloudbase-auth-web-cloudbase/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智能体仍应展示其计划,并按安全策略请求必要确认。
Agent 可读资源
当 AI Agent、爬虫或脚本需要干净上下文,而不是读取完整页面时,请使用这些链接。
测试它
正在使用“auth-web-cloudbase”。 为现有 React CloudBase 应用添加用户名和密码登录。
预期结果:
- 响应会将用户名密码识别为需要先验证的提供方。
- 它会更新登录表单,使用文本标识符而不是仅限邮箱的输入。
- 它会连接登录处理逻辑,并在不暴露密钥的情况下报告错误。
正在使用“auth-web-cloudbase”。 在用户使用 CloudBase 登录后保护仪表板。
预期结果:
- 响应会在显示私有内容之前检查当前会话。
- 它会将缺失会话或匿名会话重定向到登录页面。
- 它会避免使用可能产生误导性结果的已弃用登录状态辅助函数。
正在使用“auth-web-cloudbase”。 添加手机 OTP 注册和登录。
预期结果:
- 响应会在实现之前验证手机登录是否就绪。
- 它会将发送验证码与验证收到的 token 分离。
- 它会把 SDK 调用连接到现有按钮和状态消息。
安全审计
中风险Static command, network, filesystem, and reconnaissance findings are false positives caused by Markdown formatting, public setup links, and frontend auth examples. No prompt injection or malicious exfiltration intent was found. A medium semantic risk remains because the skill tells agents to automatically change CloudBase auth provider settings without an explicit confirmation requirement.
已确认安全问题 (1)
风险因素
⚙️ 外部命令 (50)
🌐 网络访问 (8)
📁 文件系统访问 (3)
分享与引用此报告
分享版本化评估报告、中性徽章、嵌入卡片和引用。Skillstore 只报告证据,不判断该 Skill 是否安全。
复制报告链接
https://skillstore.io/skills/tencentcloudbase-auth-web-cloudbase/audits/2?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown 徽章
[](https://skillstore.io/skills/tencentcloudbase-auth-web-cloudbase?utm_source=security_passport_badge)HTML 徽章
<a href="https://skillstore.io/skills/tencentcloudbase-auth-web-cloudbase?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/tencentcloudbase-auth-web-cloudbase/security.svg" alt="Skillstore security assessment" loading="lazy"></a>嵌入卡片
<iframe src="https://skillstore.io/embed/skills/tencentcloudbase-auth-web-cloudbase.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>学术引用 (APA · BibTeX · CFF)
APA 引用
tencentcloudbase. (2026). auth-web-cloudbase security audit report (audit version 2) [Author version 2.23.8]. Skillstore. https://skillstore.io/skills/tencentcloudbase-auth-web-cloudbase/audits/2BibTeX 引用
@techreport{tencentcloudbase-tencentcloudbase-auth-web-cloudbase-2026,
author = {tencentcloudbase},
title = {auth-web-cloudbase security audit report (audit version 2)},
institution = {Skillstore},
year = {2026},
number = {2},
url = {https://skillstore.io/skills/tencentcloudbase-auth-web-cloudbase/audits/2},
note = {Author version 2.23.8}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "auth-web-cloudbase security audit report (audit version 2)"
version: "2.23.8"
type: report
authors:
- name: "tencentcloudbase"
date-released: "2026-07-09"
url: "https://skillstore.io/skills/tencentcloudbase-auth-web-cloudbase/audits/2"
identifiers:
- type: other
value: "skillstore:tencentcloudbase-auth-web-cloudbase:audit:2"
description: "Skillstore immutable audit report identifier"
Skillstore 评分
评分依据 证据置信度: 中你能构建什么
为 Web 应用添加登录
根据 SDK v3 身份验证方法指导,实现支持 OTP、密码或 OAuth 的 CloudBase 登录表单。
使用真实会话保护路由
用基于会话的路由守卫替换不可靠的登录状态检查,拒绝匿名会话或缺失会话。
审查身份验证提供方就绪情况
在开始实现之前,检查邮箱、手机、用户名、匿名或 OAuth 提供方是否已启用。
试试这些提示
Use auth-web-cloudbase to add a CloudBase Web login page. Check provider readiness first, then wire the existing form handlers.
Use auth-web-cloudbase to protect these routes with getSession checks. Reject missing sessions and anonymous sessions before rendering private views.
Use auth-web-cloudbase to implement phone OTP, username password login, and OAuth. Confirm each provider before writing browser code.
Use auth-web-cloudbase to review this app for deprecated auth methods, incorrect provider assumptions, and weak route guards. Propose focused fixes.
最佳实践
- 在编写登录或注册代码之前,验证目标身份验证提供方。
- 使用 getSession 作为路由守卫,并在需要私有访问时拒绝匿名会话。
- 不要在浏览器代码中放置 secret keys,Web 客户端中只使用 publishable keys。
避免
- 不要将已弃用的登录状态辅助函数视为用户已通过身份验证的证明。
- 除非产品需要邮箱地址,否则不要将基于用户名的表单切换为仅限邮箱的流程。
- 不要在未确认项目所有者希望进行该变更的情况下启用新的身份验证提供方。
常见问题
此技能会创建后端身份验证服务吗?
它面向哪种 SDK 风格?
它能支持用户名和密码登录吗?
为什么它更倾向于使用 getSession 作为守卫?
它会处理 OAuth 回调吗?
启用匿名登录安全吗?
开发者详情
许可证
MIT
作者版本
v2.23.8
Skillstore 修订
r1
引用
24b2fe42a456262f3fd0fb3df72e12d9ed2c32ec
维护新鲜度
2026/7/18
使用量
1 次下载 · 0 次浏览
文件结构
📄 SKILL.md