auth-wechat-miniprogram
使用 CloudBase 建置微信小程式身分驗證
當 CloudBase 身分識別會自動處理時,微信小程式驗證很容易被誤用。此技能提供 wx.cloud、OPENID、UNIONID 與雲端函式的實用模式。
自分のエージェントでインストール
このリクエストをエージェントにコピーしてください。正規の Skill ページとマニフェストが含まれています。
Review the Skillstore skill "auth-wechat-miniprogram" from https://skillstore.io/skills/tencentcloudbase-auth-wechat-miniprogram.md and its manifest at https://skillstore.io/api/skills/tencentcloudbase-auth-wechat-miniprogram/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.エージェントは引き続き計画を提示し、セキュリティポリシーで必要な確認を求める必要があります。
エージェントが読めるリソース
AI エージェント、クローラー、スクリプトがページ全体ではなく整理されたコンテキストを必要とする場合は、これらのリンクを使ってください。
テストする
「auth-wechat-miniprogram」を使用しています。 使用者詢問如何在 CloudBase 雲端函式中識別呼叫者。
期待される結果:
助理會說明 CloudBase 呼叫者情境、UNIONID 何時出現,以及如何只回傳必要的身分識別欄位。
「auth-wechat-miniprogram」を使用しています。 使用者需要為新的 CloudBase 應用程式設定小程式驗證。
期待される結果:
助理會詢問環境 ID、確認 CloudBase 綁定,並概述應用程式啟動時的初始化流程。
「auth-wechat-miniprogram」を使用しています。 使用者想要保護小程式中由使用者擁有的記錄。
期待される結果:
助理會建議使用 OPENID 進行伺服器端所有權檢查,並警告不要信任用戶端提供的擁有者欄位。
セキュリティ監査
中リスクStatic detections are false positives caused by Markdown inline code, fenced JavaScript examples, reference URLs, and sibling skill paths. The review found two medium-risk content issues: an authorization example that relies on client-supplied owner data and examples that log sensitive identifiers.
確認済みのセキュリティ上の懸念 (2)
リスク要因
⚙️ 外部コマンド (50)
🌐 ネットワークアクセス (4)
📁 ファイルシステムへのアクセス (2)
このレポートを共有・引用
バージョン付き評価レポート、中立的なバッジ、埋め込みカード、引用を共有できます。Skillstore は証拠を報告しますが、この Skill が安全かどうかは判断しません。
レポートリンクをコピー
https://skillstore.io/skills/tencentcloudbase-auth-wechat-miniprogram/audits/2?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdownバッジ
[](https://skillstore.io/skills/tencentcloudbase-auth-wechat-miniprogram?utm_source=security_passport_badge)HTMLバッジ
<a href="https://skillstore.io/skills/tencentcloudbase-auth-wechat-miniprogram?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/tencentcloudbase-auth-wechat-miniprogram/security.svg" alt="Skillstore security assessment" loading="lazy"></a>埋め込みカード
<iframe src="https://skillstore.io/embed/skills/tencentcloudbase-auth-wechat-miniprogram.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-wechat-miniprogram security audit report (audit version 2) [Author version 2.23.8]. Skillstore. https://skillstore.io/skills/tencentcloudbase-auth-wechat-miniprogram/audits/2BibTeX形式の引用
@techreport{tencentcloudbase-tencentcloudbase-auth-wechat-miniprogram-2026,
author = {tencentcloudbase},
title = {auth-wechat-miniprogram security audit report (audit version 2)},
institution = {Skillstore},
year = {2026},
number = {2},
url = {https://skillstore.io/skills/tencentcloudbase-auth-wechat-miniprogram/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-wechat-miniprogram 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-wechat-miniprogram/audits/2"
identifiers:
- type: other
value: "skillstore:tencentcloudbase-auth-wechat-miniprogram:audit:2"
description: "Skillstore immutable audit report identifier"
Skillstore スコア
このスコアの理由 証拠の信頼度: 中作成できるもの
實作小程式身分識別
為微信小程式加入原生 CloudBase 身分識別處理,而不需要建立獨立登入頁面。
審查雲端函式驗證
檢查雲端函式在使用使用者特定資料前,如何讀取 OPENID、APPID 與 UNIONID。
選擇原生或 Web 驗證
判斷某項功能應使用原生小程式身分識別,還是獨立的 Web 驗證流程。
これらのプロンプトを試す
Use this skill to add native WeChat Mini Program auth to my CloudBase app. Ask me for missing env details first.
Create a cloud function pattern that reads OPENID, APPID, and UNIONID with wx-server-sdk. Include error handling guidance.
Help me design user-specific database access for a Mini Program. Use OPENID safely and avoid exposing identifiers.
Review my Mini Program CloudBase auth flow for native login assumptions, unsafe authorization checks, and production logging risks.
ベストプラクティス
- 撰寫程式碼前,先確認 CloudBase 環境 ID 與小程式綁定。
- 使用來自 CloudBase 情境且經驗證的 OPENID 進行使用者所有權判斷。
- 將包含 OPENID、UNIONID 或手機授權資料的日誌視為敏感資訊。
回避
- 不要為原生小程式驗證建立 Web 風格的登入頁面。
- 當 wx.cloud 已傳遞呼叫者身分時,不要手動傳送使用者憑證。
- 不要將用戶端提供的擁有者識別碼作為唯一的授權檢查。
よくある質問
這會取代微信 OAuth 嗎?
此技能可以設定 CloudBase 設定嗎?
OPENID 一定可用嗎?
什麼時候應該使用 UNIONID?
它能搭配 Claude Code 和 Codex 使用嗎?
這些範例已可用於正式環境嗎?
開発者情報
作成者
tencentcloudbaseライセンス
MIT
作者バージョン
v2.23.8
Skillstore リビジョン
r1
参照
24b2fe42a456262f3fd0fb3df72e12d9ed2c32ec
メンテナンスの新しさ
2026/7/18
利用状況
1 ダウンロード · 0 閲覧
ファイル構成
📄 SKILL.md