$npx -y skills add TencentCloudBase/cloudbase-skills --skill auth-toolCloudBase auth provider configuration and login-readiness guide. This skill should be used when users need to inspect, enable, disable, or configure auth providers, publishable-key prerequisites, login methods, SMS/email sender setup, or other provider-side readiness before imple
| 1 | ## Standalone Install Note |
| 2 | |
| 3 | If this environment only installed the current skill, start from the CloudBase main entry and use the published `cloudbase/references/...` paths for sibling skills. |
| 4 | |
| 5 | - CloudBase main entry: `https://cnb.cool/tencent/cloud/cloudbase/cloudbase-skills/-/git/raw/main/skills/cloudbase/SKILL.md` |
| 6 | - Current skill raw source: `https://cnb.cool/tencent/cloud/cloudbase/cloudbase-skills/-/git/raw/main/skills/cloudbase/references/auth-tool/SKILL.md` |
| 7 | |
| 8 | Keep local `references/...` paths for files that ship with the current skill directory. When this file points to a sibling skill such as `auth-tool` or `web-development`, use the standalone fallback URL shown next to that reference. |
| 9 | |
| 10 | ## Activation Contract |
| 11 | |
| 12 | ### Use this first when |
| 13 | |
| 14 | - The task is to inspect, enable, disable, or configure CloudBase auth providers, login methods, publishable key prerequisites, SMS/email delivery, or third-party login readiness. |
| 15 | - An auth implementation cannot proceed until provider status and login configuration are confirmed. |
| 16 | - A CloudBase Web auth flow needs provider verification before `auth-web`. |
| 17 | |
| 18 | ### Read before writing code if |
| 19 | |
| 20 | - The request mentions provider setup, auth console configuration, publishable key retrieval, login method availability, SMS/email sender setup, or third-party provider credentials. |
| 21 | - The task mixes provider configuration with Web, mini program, Node, or raw HTTP auth implementation. |
| 22 | |
| 23 | ### Then also read |
| 24 | |
| 25 | - Web auth UI -> `../auth-web/SKILL.md` (standalone fallback: `https://cnb.cool/tencent/cloud/cloudbase/cloudbase-skills/-/git/raw/main/skills/cloudbase/references/auth-web/SKILL.md`) |
| 26 | - Mini program native auth -> `../auth-wechat/SKILL.md` (standalone fallback: `https://cnb.cool/tencent/cloud/cloudbase/cloudbase-skills/-/git/raw/main/skills/cloudbase/references/auth-wechat/SKILL.md`) |
| 27 | - Node server-side identity / custom ticket -> `../auth-nodejs/SKILL.md` (standalone fallback: `https://cnb.cool/tencent/cloud/cloudbase/cloudbase-skills/-/git/raw/main/skills/cloudbase/references/auth-nodejs/SKILL.md`) |
| 28 | - Native App / raw HTTP auth client -> `../http-api/SKILL.md` (standalone fallback: `https://cnb.cool/tencent/cloud/cloudbase/cloudbase-skills/-/git/raw/main/skills/cloudbase/references/http-api/SKILL.md`) |
| 29 | |
| 30 | ### Do NOT use this as |
| 31 | |
| 32 | - The default implementation guide for every login or registration request. |
| 33 | - A replacement for mini program native auth behavior when no provider change is involved. |
| 34 | - A replacement for Node-side caller identity, user lookup, or custom login ticket flows. |
| 35 | - A replacement for frontend integration, session handling, or client UX implementation. |
| 36 | |
| 37 | ### Common mistakes / gotchas |
| 38 | |
| 39 | - Writing login UI before enabling the required provider. |
| 40 | - Treating any mention of "auth" as a provider-management task. |
| 41 | - Implementing Web login in cloud functions. |
| 42 | - Routing native App auth to Web SDK flows. |
| 43 | - Making configuration or code changes without first following the Change Safety Protocol (`cloudbase-platform/references/protocols/change-safety-protocol.md`). |
| 44 | - In an existing application, looping on provider queries after readiness is already known instead of wiring the active login and register handlers. |
| 45 | |
| 46 | ### Minimal checklist |
| 47 | |
| 48 | - Read [Authentication Activation Checklist](checklist.md) before auth implementation. |
| 49 | - Anonymous login is disabled by default. The SDK initialized with `accessKey` still creates a lightweight anonymous session for API access. If the app requires authentication (e.g. admin panels, personal dashboards), enforce access control through AuthGuard or RLS policies rather than relying on the login strategy toggle. |
| 50 | |
| 51 | ## Overview |
| 52 | |
| 53 | Configure CloudBase authentication providers: Anonymous, Username/Password, SMS, Email, WeChat, Google, and more. |
| 54 | |
| 55 | **Prerequisites**: CloudBase environment ID (`env`) |
| 56 | |
| 57 | ## MCP Tool Boundary |
| 58 | |
| 59 | Keep these two auth domains separate: |
| 60 | |
| 61 | - `auth`: MCP / management-side login only. Use it for `status`, `start_auth`, `set_env`, `logout`, and `get_temp_credentials`. |
| 62 | - `queryAppAuth` / `manageAppAuth`: app-side authentication configuration. Use them for login methods, provider settings, publishable key, static domain, client config, and custom login keys. |
| 63 | |
| 64 | Preferred execution order for this skill: |
| 65 | |
| 66 | 1. Use `queryAppAuth` / `manageAppAuth` first when the needed action exists there. |
| 67 | 2. Use `callCloudApi` only as a fallback or for debugging raw request shapes. |
| 68 | 3. Do not route app-side provider configuration back to the MCP `auth` tool. |
| 69 | 4. In existing projects with active login and register handlers, stop revisiting provider setup after the required login method and |