一键导入
demo-apis
Standards, architecture, and implementation details for Looker Embed Demo APIs (Token Reuse, Cookieless Embed, and Identity Middleware)
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Standards, architecture, and implementation details for Looker Embed Demo APIs (Token Reuse, Cookieless Embed, and Identity Middleware)
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | demo-apis |
| description | Standards, architecture, and implementation details for Looker Embed Demo APIs (Token Reuse, Cookieless Embed, and Identity Middleware) |
demo-apis)This skill defines the core architecture, security standards, and session orchestration patterns for embedding Looker LookML Explores and Dashboards using the Looker Embed SDK and Looker Core API 4.0.
looker-external-user-id):
Automatically track and assign an unguessable 12-character alphanumeric external identifier (a-zA-Z0-9) to every visitor iframe session without requiring Looker instance user pre-registration.POST /api/looker-access-token):
Eliminate repetitive login round-trips (login_user) to Looker's internal authentication servers. Enforces local client-side cookie caching with an absolute UTC Time-To-Live (TTL) buffer.POST /api/looker-cookieless/<type>):
Deliver public authorization and navigation tokens to the client-side Looker Embed SDK while encrypting and trapping the sensitive session_reference_token inside an HttpOnly, Secure cookie.viewer vs explorer) to curated LookML Explore and Dashboard entitlements.To maintain persistent user attributes and workspace isolation across embedded Looker Explore iframes, all API interactions operate behind a unified identity layer.
a-zA-Z0-9) via random.SystemRandom().embed credential upon first session acquisition.max_age=157680000) cookie (looker-external-user-id) across secure HTTPS transport.POST /api/looker-access-token)Calling Looker's login_user repeatedly introduces API throttling and pollutes Looker's internal token database. This endpoint leverages local cookie caching to instantly restore active sudo sessions.
sequenceDiagram
participant Looker Embed SDK (Browser)
participant Token Orchestrator API
participant Looker Core API 4.0
Looker Embed SDK (Browser)->>Token Orchestrator API: POST /api/looker-access-token (Cookie: looker-access-token)
alt Unexpired Token in Cache (expires_on > now + 10s)
Token Orchestrator API-->>Looker Embed SDK (Browser): 200 OK (Instant Sudo Session Restoration)
else Missing or Expired Cache
Token Orchestrator API->>Looker Core API 4.0: login_user(looker_user_id)
Looker Core API 4.0-->>Token Orchestrator API: AccessToken (expires_in: 3600)
Token Orchestrator API-->>Looker Embed SDK (Browser): 200 OK + Set-Cookie (looker-access-token: HttpOnly, Secure)
end
now + expires_in) with a 10-second safety margin to prevent Looker SDK requests from failing mid-flight.looker_user_id) from active cookieless embed authentication JWT payloads or via user_for_credential.POST /api/looker-cookieless/<type>)Orchestrates the two-part handshake required by the Looker Embed SDK (acquire_embed_cookieless_session and generate_tokens_for_cookieless_session).
type = "acquire")role: "viewer" or role: "explorer"). Strictly maps roles to curated Looker permissions:
viewer: ["access_data", "see_looks", "see_user_dashboards", "see_lookml_dashboards"]explorer: Adds ["save_content", "explore", "embed_browse_spaces"].looker-embed-tokens cookie. If an encrypted session_reference_token exists, decrypts it and attempts session resumption on Looker Core API 4.0. If resumption fails, automatically retries to acquire a fresh session.session_reference_token using an HMAC-SHA256 CTR-mode stream cipher (ENCRYPTION_KEY) and stores it inside the stateful HttpOnly, Secure cookie (looker-embed-tokens).authentication_token, navigation_token, and api_token to the client browser.type = "generate")session:tokens:request events) to extend active navigation and API token TTLs.session_reference_token from the looker-embed-tokens cookie.User-Agent.looker-embed-tokens cookie.api_token and navigation_token schemas to the browser iframe.looker-access-token) in tandem to keep client and API states perfectly synchronized.This skill enables agents to assist users in programmatically creating, updating, and managing Looker themes using the Looker API. Use this when you need to automate visual styling, implement brand-specific themes, or manage instance-wide default themes.
Detailed guidelines and mandatory workflows for localizing LookML models, views, explores, and dashboards, including string catalog creation and deployment via lkr-dev-cli.
Parent orchestrator skill for coordinating full-stack internationalization and localization across LookML models/dashboards and the React frontend application.
Comprehensive standards, UI design principles, tabbed report architecture, and automation patterns for creating and managing modern LookML dashboards using local LookML files and Looker MCP/CLI tools.
Analyzes a specific LookML dashboard (e.g., brand_lookup.dashboard.lookml), extracts all query elements and merge results, verifies them via run_inline_query(result="sql"), and self-heals missing LookML fields by iteratively adding best-guess calculations to local LookML views.
Standards, workflow rules, and helper patterns for managing LookML files in the Looker project using the `lkr-dev-cli` CLI tool, including full project and single-file push/pull synchronization and production deployment.