技能 编程开发 Clerk企业级SSO权限

Clerk企业级SSO权限

v20260311
clerk-enterprise-rbac
用于实现Clerk企业级SSO、角色权限以及组织管理,方便团队配置IdP集成、保护路由、在中间件和React组件中执行RBAC,并统一处理组织范围的角色与权限控制。
获取技能
354 次下载
概览

Clerk Enterprise RBAC

Overview

Implement enterprise-grade SSO, role-based access control, and organization management.

Prerequisites

  • Clerk Enterprise tier subscription
  • Identity Provider (IdP) with SAML/OIDC support
  • Understanding of role-based access patterns
  • Organization structure defined

Instructions

  1. Step 1: Configure SAML SSO
  2. Step 2: Define Roles and Permissions
  3. Step 3: Permission Checking
  4. Step 4: Protected Routes with RBAC
  5. Step 5: Organization Management
  6. Step 6: React Components with RBAC
  7. Step 7: API Route Protection

For full implementation details and code examples, load: Read(${CLAUDE_SKILL_DIR}/references/implementation-guide.md)

Output

  • SAML SSO configured
  • Roles and permissions defined
  • RBAC enforcement in middleware
  • Organization management

Error Handling

Error Cause Solution
SSO login fails Misconfigured IdP Check attribute mapping
Permission denied Missing role Review role assignments
Org not found User not in org Prompt org selection

Resources

Next Steps

Proceed to clerk-migration-deep-dive for auth provider migration.

Examples

Basic usage: Apply clerk enterprise rbac to a standard project setup with default configuration options.

Advanced scenario: Customize clerk enterprise rbac for production environments with multiple constraints and team-specific requirements.

信息
Category 编程开发
Name clerk-enterprise-rbac
版本 v20260311
大小 3.67KB
更新时间 2026-03-12
语言