Skip to content

chore: Resolves Issue #92, updates to use transitive dependency explicit - #134

Open
blochs wants to merge 1 commit into
auth0:mainfrom
blochs:deprecated-lib-warning
Open

blochs wants to merge 1 commit into
auth0:mainfrom
blochs:deprecated-lib-warning

Conversation

@blochs

@blochs blochs commented Sep 29, 2026 •

Copy link
Copy Markdown

Changes

Replaced deprecated authlib.jose usage with Authlib’s transitive joserfc dependency.

This removes the AuthlibDeprecationWarning emitted by Authlib 1.7+ while preserving existing JWT, JWK, and DPoP behavior.

Additional changes:

  • No endpoints were added, deleted, deprecated, or changed.
  • ApiClientOptions now accepts jwt_algorithms, defaulting to ["RS256"].
  • Access-token verification supports configurable signing algorithms.
  • DPoP verification remains restricted to ES256.
  • Updated JWT test utilities to work with joserfc’s stricter header validation.
  • No UI changes or screenshots are applicable.

Example:

ApiClientOptions(
    domain="example.us.auth0.com",
    audience="my-api",
    jwt_algorithms=["RS384", "RS512"],
)

Alternative approaches considered:

  • Pinning Authlib below 1.7, which would only postpone the deprecation.
  • Adding joserfc as a direct dependency, but it remains transitive as requested.
  • Suppressing the warning, which would leave deprecated API usage in place.

References

Testing

  • This change adds unit test coverage
  • This change adds integration test coverage
  • This change has been tested on Python 3.13.7

Reviewers can run:

PYTHONPATH=src pytest tests/test_api_client.py tests/test_utils.py -q

Result: 210 passed.

The test suite verifies JWT verification, DPoP verification, malformed DPoP headers, configurable algorithms, and existing behavior.

Checklist

@blochs
blochs requested a review from a team as a code owner September 29, 2026 12:46
…explicit

and removes the deprecation warning for the authlib.jose library.Signed
@blochs
blochs force-pushed the deprecated-lib-warning branch from 064981e to ff4c63f Compare September 29, 2026 12:52

This branch has not been deployed

No deployments
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