# ๐Ÿ” User Info Proxy API A lightweight FastAPI microservice that forwards an Authorization Bearer token to an internal authentication server and returns user details. ## ๐Ÿš€ Features - ๐Ÿ” Forwards Bearer tokens to your internal auth endpoint - ๐Ÿ”’ Built-in error handling ## ๐Ÿ“ฆ Endpoints ### GET /get_session_user_info Forward your existing Bearer token and get authenticated user details. ๐Ÿ“ฅ Headers: Authorization: Bearer YOUR_TOKEN ๐Ÿ“ค Response: { "id": "user-id", "email": "user@example.com", "name": "Jane Doe", ... } ## โš™๏ธ Setup 1. Set your auth backend base URL: ``` export OPEN_WEBUI_BASE_URL=http://your-open-webui.com ``` 2. Run the service: ``` uvicorn main:app --host 0.0.0.0 --reload ``` ## ๐Ÿงฉ Environment Variables | Name | Description | Default | |---------------------|--------------------------------------|----------------------| | OPEN_WEBUI_BASE_URL | Base URL of the internal auth server | http://localhost:3000 | ## ๐Ÿฟ Example curl -H "Authorization: Bearer " http://localhost:8000/get_user_info ## ๐Ÿงช Tech Stack - Python 3.11+ - FastAPI โšก --- Made with โค๏ธ by your backend team.