auth-web

Configures CloudBase Web SDK authentication after verifying providers with auth-tool.

1.1k|138|Updated May 23, 2025
One-click install
npx skills add https://github.com/TencentCloudBase/CloudBase-AI-Toolkit --skill auth-web
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: auth-web
Source: https://github.com/TencentCloudBase/CloudBase-AI-Toolkit/tree/main/dsh-plugin/skills/cloudbase/auth-web
Command: npx skills add https://github.com/TencentCloudBase/CloudBase-AI-Toolkit --skill auth-web

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Adding user authentication to a web application on CloudBase requires choosing the right login providers and using the correct SDK APIs, and mixing up web auth with mini-program OPENID flows causes subtle integration bugs.

Core Features & Use Cases

  • Provider Verification: Checks and manages app login providers via the queryAppAuth and manageAppAuth MCP tools before writing auth code.
  • Management Login Guidance: Uses the mcp__cloudbase__auth device-code flow for MCP management login instead of inventing API keys.
  • Web SDK Auth Integration: Directs implementation of CloudBase Web SDK authentication APIs while explicitly avoiding mini-program OPENID patterns.
  • Use Case: You are building a React admin dashboard on CloudBase and need SMS or username-password login; this Skill ensures providers are enabled first and the Web SDK auth calls are wired correctly.

Quick Start

Add CloudBase Web SDK login to my web app after checking which auth providers are enabled with queryAppAuth.

Frequently Asked Questions about auth-web

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add CloudBase authentication to a web app?

First check which login providers are enabled using the queryAppAuth MCP tool, then integrate the CloudBase Web SDK auth APIs in your frontend code. Enable or modify providers with manageAppAuth if the required provider is missing.

How to check enabled CloudBase login providers?

Use the mcp__cloudbase__queryAppAuth tool to list the authentication providers currently enabled for your CloudBase environment. Use manageAppAuth to enable or configure additional providers before writing client auth code.

Can I use mini-program OPENID auth in a CloudBase web app?

No, web applications must use the CloudBase Web SDK authentication APIs, which differ from mini-program OPENID flows. Mixing the two causes authentication failures because the identity models are platform-specific.

Does CloudBase MCP login require an API key?

No, management login for the CloudBase MCP server uses the mcp__cloudbase__auth device-code flow. You should not invent or hardcode API keys for MCP authentication.

Why does CloudBase web login fail after implementation?

A common cause is that the login provider was never enabled for the environment. Run queryAppAuth to confirm the provider is active, and verify you are using Web SDK auth methods rather than mini-program APIs.