Repository navigation
fix(auth): let developers choose Resend OAuth2 scope - #13568
Merged
Merged
Conversation
Drop the hardcoded emails:send default from the Resend adapter so the requested scope comes from the project's custom scopes instead. Co-Authored-By: Claude Fable 5.1 <[email protected]>
Contributor
The change appears safe to merge, with a non-blocking gap in regression coverage for the authorization URL behavior being fixed.
|
✨ Benchmark resultsComparing
Per-scenario breakdown & investigation detailsMetrics below reflect the current branch (after). Δ P95 compares against the base.
Top API waits (after)
|
2 of 4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Removes the hardcoded
emails:senddefault scope from the Resend OAuth2 adapter. Resend offers onlyemails:sendandfull_access, and neither is identity-only, so the adapter should not pick one on the developer's behalf. Developers now request whichever scope they need through the provider's custom scopes; with none configured, the login URL sends an emptyscope, matching other adapters with no default scopes.Follow-up to #13366.
Test Plan
composer lint src/Appwrite/Auth/OAuth2/Resend.phppassesOAuth2base constructor, so configuringemails:sendorfull_accesson the provider produces the same login URL as beforeRelated PRs and Issues
Checklist
🤖 Generated with Claude Code