Repository navigation
Add OAuth v3 API client - #635
Merged
Merged
Conversation
This was referenced Oct 28, 2026
Merged
Add OAuth v3 discovery and deprecate OAuth v1
…etToken() no longer fails on token_use access_token
camden11
approved these changes
Oct 30, 2026
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.
Why
The OAuth v3 token endpoints are available in the API but the PHP SDK has no client for them. The Node.js SDK already exposes them as
oauth.v3.advancedApi, and the existing OAuth token APIs are the older ones.What
codegen/Oauth/V3(OpenAPI Generator 7.19.0, same as the rest ofcodegen/).AdvancedApiwithgetToken,introspectTokenandrevokeToken, plus the request/response models.Not included
lib/Discovery/Oauth), so the client is not reachable from$client->oauth()yet.Verification
php -lpasses for all generated files.getTokenandintrospectTokensend the expected form-encoded requests and deserialize the responses.revokeTokenreturns normally for200and204with an empty body, and a400raisesApiException.🤖 Generated with Claude Code