Migrate OAuth token endpoints to the 2026-03 API (OME-796) - #2
Open
mjdobbins12 wants to merge 1 commit into
Open
Migrate OAuth token endpoints to the 2026-03 API (OME-796)#2mjdobbins12 wants to merge 1 commit into
mjdobbins12 wants to merge 1 commit into
Conversation
HubSpot sunsets the legacy /oauth/v1/ token endpoints on 2027-02-16. Move the
three OAuth codegen operations to the 2026-03 replacements:
- TokensApi#create: POST /oauth/v1/token -> POST /oauth/2026-03/token
(already form-encoded; response is identical, so no model change).
- AccessTokensApi#get and RefreshTokensApi#get: GET /oauth/v1/{access,refresh}-tokens/{token}
-> POST /oauth/2026-03/token/introspect, with token, token_type_hint, client_id and
client_secret sent as form-body params (never in the URL). Introspection returns a raw
hash rather than a strict model, since the 2026-03 introspect fields differ from v1.
- RefreshTokensApi#archive: DELETE /oauth/v1/refresh-tokens/{token}
-> POST /oauth/2026-03/token/revoke, token in the form body.
Method names/signatures are unchanged so callers are unaffected. No /oauth/v1/ path
remains in the gem.
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.
HubSpot sunsets the legacy /oauth/v1/ token endpoints on 2027-02-16. Move the three OAuth codegen operations to the 2026-03 replacements:
Method names/signatures are unchanged so callers are unaffected. No /oauth/v1/ path remains in the gem.