A lightweight FastAPI microservice that forwards an Authorization Bearer token to an internal authentication server and returns user details.
- 🔁 Forwards Bearer tokens to your internal auth endpoint
- 🔒 Built-in error handling
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", ... }
- Set your auth backend base URL:
export OPEN_WEBUI_BASE_URL=http://your-open-webui.com
- Run the service:
uvicorn main:app --host 0.0.0.0 --reload
Name | Description | Default |
---|---|---|
OPEN_WEBUI_BASE_URL | Base URL of the internal auth server | http://localhost:3000 |
curl -H "Authorization: Bearer <your_token>" http://localhost:8000/get_user_info
- Python 3.11+
- FastAPI ⚡
Made with ❤️ by your backend team.