Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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:

  1. record the step as ❌ blocked,
  2. explain exactly what is missing / what failed,
  3. 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_SECRET environment 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-upgrade skill
  • Guest embeds auth (uses METABASE_SECRET_KEY with {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

Полный SKILL.md на GitHub

Установить metabase-embedding-sso-implementation в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Write
Edit
Glob
Grep
Bash
WebFetch
Task
TaskCreate
TaskUpdate
TaskList
TaskGet
AskUserQuestion

FAQ

Что делает скилл 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), без исполняемых скриптов.

Похожие скиллы

Сравнить metabase-embedding-sso-implementation с