Skip to content

feat: migrate to OAuth 2.0 auth and rename client to PhenomlClient#99

Merged
gavinsharp merged 7 commits intomainfrom
fern-bot/2026-03-04T20-42Z
Mar 4, 2026
Merged

feat: migrate to OAuth 2.0 auth and rename client to PhenomlClient#99
gavinsharp merged 7 commits intomainfrom
fern-bot/2026-03-04T20-42Z

Conversation

@fern-api
Copy link
Contributor

@fern-api fern-api bot commented Mar 4, 2026

Summary

Major version bump with breaking changes to authentication and client naming.

  • Auth migration: Token-based auth → OAuth 2.0 client credentials flow. Builders now accept clientId()/clientSecret() (defaults to PHENOML_CLIENT_ID/PHENOML_CLIENT_SECRET env vars) with automatic token management via OAuthTokenSupplier.
  • Client renamed: PhenoMLPhenomlClient, AsyncPhenoMLAsyncPhenomlClient; builders renamed correspondingly.
  • Wrappers removed: Client.java and AsyncClient.java deleted; Fern-generated clients now have built-in OAuth.
  • New endpoint: /v2/auth/token OAuth 2.0 client credentials endpoint.

🌿 Generated with Fern

fern-api bot and others added 2 commits March 4, 2026 20:43
Unable to analyze changes with AI, incrementing PATCH version.
Update version from 8.3.1 to 9.0.0 across build.gradle, ClientOptions.java,
and changelog.md to reflect the breaking changes in this release (OAuth 2.0
auth migration and client class renames).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@gavinsharp gavinsharp changed the title SDK regeneration feat: migrate to OAuth 2.0 auth and rename client to PhenomlClient Mar 4, 2026
gavinsharp and others added 5 commits March 4, 2026 15:53
Add a Migration Guide section to the 9.0.0 changelog with code examples
showing how to update authentication and imports from the old PhenoMLClient
to the new PhenomlClient with OAuth 2.0 client credentials.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@gavinsharp gavinsharp merged commit d44f75f into main Mar 4, 2026
4 checks passed
@gavinsharp gavinsharp deleted the fern-bot/2026-03-04T20-42Z branch March 4, 2026 21:27
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.

1 participant