metabase-embedding-sso-implementation
БесплатноБез исполняемых скриптовНе проверенImplements JWT SSO authentication for Metabase embedding in a project. Supports all embedding types that use SSO — Modular embedding (embed.js web…
от metabase★ 60 звёзд на GitHubОб этом скилле
Execution contract
Follow the workflow steps in order — do not skip any step. Create the checklist first, then execute each step and explicitly mark it done with evidence. Each step's output feeds into the next, so skipping steps produces incorrect implementations.
If you cannot complete a step due to missing info or tool failure, you must:
- record the step as ❌ blocked,
- explain exactly what is missing / what failed,
- stop (do not proceed to later steps).
Each workflow step must end with Status: ✅ complete or Status: ❌ blocked. Steps are sequential — do not start a step until the previous one is complete. Each step must include evidence (detected code patterns, file paths, diffs applied, pass/fail results).
Architectural conformance
Follow the app's existing architecture, template engine, layout/partial system, code style, and route patterns. Do not switch paradigms (e.g., templates to inline HTML or vice versa). If the app has middleware for shared template variables, prefer that over duplicating across route handlers.
The JWT SSO endpoint must integrate with the app's existing authentication system. The endpoint must only issue Metabase JWTs for users who are already authenticated in the host app. Never create an endpoint that issues tokens without verifying the user's session first.
SSO requests to the Metabase instance must be proxied through the app's backend (FE → BE → Metabase /auth/sso). This keeps the Metabase instance URL and JWT tokens off the client, avoids CORS issues, and ensures auth is always validated server-side. The JWT shared secret must never be exposed to the frontend.
Important performance notes
- Maximize parallelism within each step. Use parallel Grep/Glob/Read calls in a single message wherever possible.
- Do not use sub-agents for project scanning — results need to stay in the main context for cross-referencing in later steps.
- Do not parse repo branches, commits, PRs, or issues.
Scope
This skill implements JWT SSO authentication for Metabase embedding. It supports all three embedding types that use SSO:
| Embedding type | Delivery mechanism | Frontend auth config |
|---|---|---|
| Modular embedding (embed.js) | Web components (<metabase-dashboard>, etc.) |
window.metabaseConfig — see fetched docs for available auth fields |
Modular embedding SDK (@metabase/embedding-sdk-react) |
React components (<InteractiveDashboard>, etc.) |
defineMetabaseAuthConfig() — see fetched docs for available auth fields |
| Full App embedding | iframe with full Metabase UI | iframe src points through SSO endpoint |
The SSO endpoint response format (JSON, redirect, proxy to Metabase /auth/sso, etc.) varies by embedding type and Metabase version — consult the fetched docs to determine the correct behavior.
The consumer's app may be written in any backend language (Node.js, Python, Ruby, PHP, Java, Go, .NET, etc.). Keep instructions language-agnostic unless a specific language is detected in Step 1.
What this skill handles
- Creating a JWT signing endpoint that maps the app's authenticated user to Metabase JWT fields (
email,first_name,last_name,groups,exp) - Configuring the frontend auth layer based on the detected embedding type
- Adding the
METABASE_JWT_SHARED_SECRETenvironment variable - Installing a JWT signing library if one is not already present
- Producing Metabase admin configuration instructions (JWT settings, group mappings, CORS)
What this skill does NOT handle
- Setting up the embedding itself (web components, SDK, or iframes) — use the migration skills for that
- Upgrading the embedding version — use the
metabase-modular-embedding-version-upgradeskill - Guest embeds auth (uses
METABASE_SECRET_KEYwith{resource, params}payloads, not SSO) - SAML or LDAP authentication — this skill covers JWT SSO only
JWT payload structure (SSO)
The JWT signed with METABASE_JWT_SHARED_SECRET must contain these fields:
| Field | Type | Required | Description |
|---|---|---|---|
email |
string | Yes | User's email — Metabase uses this as the unique identifier. Auto-provisions account on first login. |
first_name |
string | Yes | User's first name — synced on every login. |
last_name |
string | Yes | User's last name — synced on every login. |
groups |
string[] | Yes | Array of group names — Metabase syncs group memberships on every login when group sync is enabled. |
exp |
number | Yes | Token expiration as Unix timestamp. Recommend 10 minutes: e.g. Math.round(Date.now() / 1000) + 600. |
Additional user attributes can be included as extra key/value pairs in the JWT — Metabase will store them as user attributes for use in sandboxing and data permissions.
Allowed documentation sources
Fetch the version-specific llms-embedding-full.txt using this URL:
https://www.metabase.com/docs/v0.{VERSION}/llms-embedding-full.txt
The version in the URL uses the f
Установить metabase-embedding-sso-implementation в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadWriteEditGlobGrepBashWebFetchTaskTaskCreateTaskUpdateTaskListTaskGetAskUserQuestionFAQ
Что делает скилл metabase-embedding-sso-implementation?
Implements JWT SSO authentication for Metabase embedding in a project. Supports all embedding types that use SSO — Modular embedding (embed.js web components), Modular embedding SDK (@metabase/embedding-sdk-react), and Full app embedding (iframe-based). Creates the JWT signing endpoint, configures the frontend auth layer, and sets up group mappings. Use when the user wants to add SSO/JWT auth to their Metabase embedding, implement user identity for embedded analytics, set up JWT authentication for Metabase, or connect their app's authentication to Metabase embedding.
Как установить скилл metabase-embedding-sso-implementation?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл metabase-embedding-sso-implementation запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic