# ๐Ÿ” Token Extractor API A simple FastAPI service that extracts `oauth_id_token` and `oauth_access_token` from cookies. ## ๐Ÿš€ Features - ๐Ÿ”‘ Parses cookies for SSO tokens from Open WebUI - ๐Ÿ“ค Returns the extracted tokens as JSON ## ๐Ÿ“ฆ Endpoint ### GET /tokens Reads cookies and returns: ```json { "oauth_id_token": "string or null", "oauth_access_token": "string or null" } ``` ## โš™๏ธ Setup Make sure your SSO is configured in Open WebUI and the cookies `oauth_id_token` and `oauth_access_token` are set in the client. Run the service: ```bash uvicorn main:app --host 0.0.0.0 --reload ``` ## ๐Ÿฟ Example ```bash curl --cookie "oauth_id_token=xxx; oauth_access_token=yyy" http://localhost:8000/tokens ``` ## ๐Ÿงช Tech Stack - Python 3.11+ - FastAPI โšก Made with โค๏ธ by Open WebUI team.