-
Notifications
You must be signed in to change notification settings - Fork 694
chore(oauth): OAuth handler to support functional configuration options #442
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…ion options - Refactor NewOAuthHandler to accept functional options for configuration - Add support for injecting a custom HTTP client via WithOAuthHTTPClient option fix mark3labs#440 Signed-off-by: Bo-Yi Wu <[email protected]>
Warning Rate limit exceeded@appleboy has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 15 minutes and 53 seconds before requesting another review. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📒 Files selected for processing (1)
WalkthroughThe constructor for Changes
Assessment against linked issues
Assessment against linked issues: Out-of-scope changesNo out-of-scope changes were found. ✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
- Add a test to verify that NewOAuthHandler correctly sets a custom http.Client and uses the default client when none is provided Signed-off-by: Bo-Yi Wu <[email protected]>
@ezynda3 , any feedback? |
Description
NewOAuthHandler
function to use the functional options pattern, making configuration more flexible and extensible.WithOAuthHTTPClient
option, allowing advanced control over authentication requests (e.g., timeout, proxy).fix #440
Motivation
Changes
NewOAuthHandler
now accepts functional options.WithOAuthHTTPClient
for injecting a customhttp.Client
.Testing
Notes
Type of Change
Checklist
MCP Spec Compliance
Additional Information
Summary by CodeRabbit