Conversation
This change adds support for restricting the allowed redirect URLs in the OAuth proxy. It introduces a new configuration option `allowed_redirect_urls` in `OAuthProxyConfig`, which can be set via the `--oauth-proxy-allowed-redirect-urls` CLI argument or the `ENAPTER_OAUTH_PROXY_ALLOWED_REDIRECT_URLS` environment variable. The restricted URLs are passed to the underlying `fastmcp` OAuthProxy implementation to enhance security by preventing open redirect vulnerabilities. Added a unit test to verify the CLI argument parsing logic. Co-authored-by: rnovatorov <20299819+rnovatorov@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
- Add support for restricting allowed redirect URLs in the OAuth proxy. - URLs can be set via `--oauth-proxy-allowed-redirect-urls` CLI argument or `ENAPTER_OAUTH_PROXY_ALLOWED_REDIRECT_URLS` environment variable. - Pass restricted URLs to the underlying `fastmcp` OAuthProxy. - Add unit test for CLI argument parsing. - Reformat code with black and isort. - Fix unused imports in tests. Co-authored-by: rnovatorov <20299819+rnovatorov@users.noreply.github.com>
Added support for restricting allowed redirect URLs in the OAuth proxy via CLI argument and environment variable. Modified
OAuthProxyConfig,ServeCommand, andServerto propagate this configuration. Included a new unit test for verification.PR created automatically by Jules for task 12195343495812603582 started by @rnovatorov