databricks-apps-cookie-auth
БесплатноБез исполняемых скриптовНе проверенGuide for authenticating with Databricks Apps using cookie-based auth when OAuth/PAT tokens don't work. Use when connecting to Databricks Apps with User…
Об этом скилле
Databricks Apps Cookie Authentication
Problem Solved
Databricks Apps that require browser-based OAuth cannot be accessed with service principals or PATs when the app is configured for "User Authorization" only. The app always redirects to OAuth login regardless of Bearer tokens sent.
Solution: Cookie-Based Authentication
After a user completes browser OAuth login, Databricks Apps set a session cookie __Host-databricksapps that can be captured and reused for API access.
How It Works
- User logs into the Databricks App via browser
- Browser receives
__Host-databricksappscookie after successful OAuth - Cookie is captured from browser DevTools (Application > Cookies)
- Cookie is passed as header in MCP client requests
Cookie Format
__Host-databricksapps=<encrypted_session_data>|<timestamp>|<signature>
The timestamp indicates expiry - cookies typically expire after a session timeout.
Code Example
from mcp.client.session import ClientSession
from mcp.client.streamable_http import streamablehttp_client
from datetime import timedelta
async def connect_with_cookie(url: str, cookie_value: str):
http_context = streamablehttp_client(
url,
headers={'Cookie': f'__Host-databricksapps={cookie_value}'}
)
read, write, _ = await http_context.__aenter__()
session = ClientSession(read, write, read_timeout_seconds=timedelta(seconds=60))
await session.__aenter__()
await session.initialize()
tools = await session.list_tools()
return tools
When to Use This
- Databricks Apps with "User Authorization" enabled but no service principal access
- Apps that redirect to OAuth regardless of Bearer tokens
- Testing/development scenarios where HITL OAuth isn't implemented yet
Limitations
- Session Expiry: Cookies expire, requiring periodic browser re-login
- User-Specific: Cookie is tied to the user who logged in
- Security: Cookie contains sensitive session data - handle securely
Relevant Files
penguiflow/tools/node.py- ToolNode implementationpenguiflow/tools/config.py- AuthType enumtest_generation/reporting-agent/src/reporting_agent/external_tools.py- Example usage
Related Auth Types
| Auth Type | Use Case | Connection Phase | Tool Execution Phase |
|---|---|---|---|
| BEARER | Static tokens, PATs | Headers | Headers |
| API_KEY | API keys | Headers | Headers |
| OAUTH2_USER | HITL OAuth | Deferred | HITL flow |
| COOKIE (new) | Databricks Apps | Cookie header | Cookie header |
Установить databricks-apps-cookie-auth в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл databricks-apps-cookie-auth?
Guide for authenticating with Databricks Apps using cookie-based auth when OAuth/PAT tokens don't work. Use when connecting to Databricks Apps with User Authorization enabled.
Как установить скилл databricks-apps-cookie-auth?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл databricks-apps-cookie-auth запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic