Skip to content

Conversation

@bin-ario
Copy link
Contributor

@bin-ario bin-ario commented Dec 16, 2025

we want to access the server at different domains. to do so, we need to handle oauth separately for individual domains.

the new SERVER_CONFIGS configs a set of domains, each with a list of auth providers

the implementation here starts separate uvicorn servers, each is responsible for a domain, so that the oauth is handled separately. when receiving a request, get_server_origin helper gets the domain the client is requesting, so we invoke the right auth flow accordingly

all uvicorn servers share the same ContainerManager

Base automatically changed from bin/config to main December 16, 2025 22:45
@bin-ario bin-ario force-pushed the bin/auth branch 2 times, most recently from 9607627 to c6ecd8c Compare December 16, 2025 23:06
@bin-ario bin-ario changed the title allow to serve multiple public domains allow serving multiple public domains Dec 16, 2025
@bin-ario bin-ario requested review from ariya and kpprasa December 16, 2025 23:14
Comment on lines -53 to +55
if request.url.path.startswith("/mcp"): # type: ignore
# Store all incoming headers in context for access during request
incoming_headers_context.set(dict(request.headers))
incoming_headers_context.set(dict(request.headers))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we want to get the request headers for all requests for get_server_origin, not just mcp requests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants