帮助用户为 Power Pages 站点配置登录认证、权限控制与身份提供商接入。
复制安装指令,让 AI 自动完成配置 · 推荐新手
请帮我安装 askskill 上的 "setup-auth" 技能: 1. 下载 https://raw.githubusercontent.com/microsoft/power-platform-skills/main/plugins/power-pages/skills/setup-auth/SKILL.md 2. 保存为 ~/.claude/skills/setup-auth/SKILL.md 3. 装好后重载技能,告诉我可以用了
请为我的 Power Pages 站点配置 Microsoft Entra ID 登录,包含登录、登出、受保护页面访问控制,并说明需要修改的配置步骤。
提供基于 Entra ID 的认证与授权配置方案,包括登录登出流程和页面保护设置。
帮我在 Power Pages 中启用本地用户名密码登录,并设置注册、登录、登出以及仅登录用户可访问的页面。
给出本地认证启用方法、用户访问限制配置和相关实施步骤。
请为我的 Power Pages 站点接入 Google 登录,并配置登录后按用户角色控制不同页面访问权限。
输出第三方登录接入方案,以及基于角色的页面授权配置建议。
Plugin check: Run
node "${CLAUDE_PLUGIN_ROOT}/scripts/check-version.js"— if it outputs a message, show it to the user before proceeding.
Configure authentication (login/logout) and role-based authorization for a Power Pages code site. This skill supports multiple identity providers -- Microsoft Entra ID, Entra External ID (for customer-facing apps with self-service sign-up), OpenID Connect (generic), SAML2, WS-Federation, local authentication (username/password), Microsoft Account, Facebook, and Google. It also supports optional features including invitation-based registration and Terms & Conditions acceptance. Power Pages built-in 2FA is intentionally not scaffolded because the SendCode/VerifyCode pages are server-rendered and cannot be integrated into a SPA experience — use IdP-level MFA instead. It creates an auth service, type declarations, authorization utilities, auth UI components, and role-based access control patterns appropriate to the site's framework and chosen identity provider(s).
Initial request: $ARGUMENTS
Prerequisites:
- An existing Power Pages code site created via
/create-site- The site must be deployed at least once (
.powerpages-sitefolder must exist)- Web roles must be created via
/create-webroles
Goal: Confirm the project exists, identify the framework, verify deployment status and web roles, and check for existing auth code.
Look for powerpages.config.json in the current directory or immediate subdirectories:
**/powerpages.config.json
If not found: Tell the user to create a site first with /create-site.
Read package.json to determine the framework (React, Vue, Angular, or Astro). See ${CLAUDE_PLUGIN_ROOT}/references/framework-conventions.md for the full framework detection mapping.
Look for the .powerpages-site folder:
**/.powerpages-site
If not found: Tell the user the site must be deployed first:
"The
.powerpages-sitefolder was not found. The site needs to be deployed at least once before authentication can be configured."
Use AskUserQuestion:
| Question | Options |
|---|---|
| Your site needs to be deployed first. Would you like to deploy now? | Yes, deploy now (Recommended), No, I'll do it later |
If "Yes, deploy now": Invoke /deploy-site, then resume.
If "No": Stop — the site must be deployed first.
Look for web role YAML files in .powerpages-site/web-roles/:
**/.powerpages-site/web-roles/*.yml
…
帮助你为当前协作会话配置 Canvas Authoring MCP 服务器并排查连接问题
帮助用户将 canvas-apps 插件问题整理并提交为规范的 GitHub issue。
为 Power Apps 代码应用接入 Azure DevOps 连接器,便于查询工单、提报缺陷与管理流水线。
帮助你为 Power Apps 代码应用添加数据源或连接器,并引导到合适操作流程。
为 Power Apps 代码应用快速接入任意 Power Platform 连接器。
为 Power Apps 代码应用添加 Excel Online 连接器,便于读写 OneDrive 或 SharePoint 中的表格数据。
帮助你将 Power Automate 云端流程接入 Power Pages 站点并生成调用代码
帮助你为 Convex 应用配置认证、身份映射与访问控制流程。
指导完成 Microsoft Entra ID 应用注册、OAuth 配置与 MSAL 接入。
为 Power Pages 站点创建发布者与解决方案,并完成组件打包以支持 ALM 部署。
为 Power Pages 代码站点补齐 SEO 基础配置,提升搜索可见性与分享展示效果。
检查并配置 Power Pages 站点前的 WAF 防火墙,提升抗攻击与访问控制能力。