Skip to content

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

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

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

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. Client now accepts client_id/client_secret (defaults to PHENOML_CLIENT_ID/PHENOML_CLIENT_SECRET env vars) with automatic token management. Also supports a token callable for pre-generated tokens.
  • Client renamed: PhenoMLClient / phenomlPhenomlClient.
  • Wrapper removed: Custom wrapper_client.py deleted; PhenomlClient now has built-in OAuth support.
  • New endpoint: /v2/auth/token OAuth 2.0 client credentials endpoint.
  • Generator upgrade: Fern Python SDK generator 4.61.4, CLI 4.3.3.
  • Python 3.13+ support: Added Python 3.13, 3.14, 3.15 classifiers.

🌿 Generated with Fern

fern-api bot and others added 2 commits March 4, 2026 20:41
Unable to analyze changes with AI, incrementing PATCH version.
Update version from 7.3.1 to 8.0.0 across all files (pyproject.toml,
metadata.json, client_wrapper.py) and replace the placeholder changelog
entry with detailed breaking changes documentation covering the OAuth 2.0
auth migration, client rename, and other significant changes.

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
Include code examples showing how to migrate from token-based auth
to OAuth 2.0 client credentials, and from PhenoMLClient to PhenomlClient.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…tead of token-based auth

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The Internal section (Fern generator/CLI upgrades, HTTP client rewrite,
Pydantic utilities, pytest-xdist) is implementation detail that doesn't
belong in the public changelog.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…matting

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