Skip to content

Add OAuth v3 discovery and deprecate OAuth v1 - #636

Merged
ksvirkou-hubspot merged 1 commit into
feature/oauthV3from
feature/oauthV3Discovery
Oct 28, 2026
Merged

ksvirkou-hubspot merged 1 commit into
feature/oauthV3from
feature/oauthV3Discovery

Conversation

@ksvirkou-hubspot

Copy link
Copy Markdown
Collaborator

Why

The OAuth v3 client from #635 was generated but had no entry point, so oauth()->v3()->advancedApi() was not reachable. v3 replaces the v1 token APIs, so v1 is marked deprecated to steer users to v3 before it is removed.

Changes

  • oauth()->v3()->advancedApi() (getToken(), introspectToken(), revokeToken()) via Discovery\Oauth\V3\Discovery.
  • oauth()->accessTokensApi(), refreshTokensApi() and tokensApi() are now real methods marked @deprecated, and so are all methods of AccessTokensApi, RefreshTokensApi and TokensApi.
  • phpspec specs for oauth()->v3() and advancedApi().

Base is feature/oauthV3 (#635); retarget to master once it is merged.

🤖 Generated with Claude Code

@ksvirkou-hubspot ksvirkou-hubspot mentioned this pull request Oct 28, 2026
@ksvirkou-hubspot
ksvirkou-hubspot merged commit cd94fd0 into feature/oauthV3 Oct 28, 2026
4 checks passed
@ksvirkou-hubspot
ksvirkou-hubspot deleted the feature/oauthV3Discovery branch October 28, 2026 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants