Skip to content

Conversation

@utkrishtsahu
Copy link
Contributor

@utkrishtsahu utkrishtsahu commented Feb 12, 2026

Changes

Internal dependency upgrade

This PR upgrades the SDK's internal HTTP client library OkHttp from 4.12.0 to 5.0.0 and the Kotlin compiler from 2.0.21 to 2.2.0 (required for OkHttp 5.x metadata compatibility).

Endpoints added, deleted, deprecated, or changed

None. All Auth0 API endpoints remain unchanged.

Classes and methods added, deleted, deprecated, or changed

  • No classes or methods added, deleted, deprecated, or changed in the public API.
  • OkHttp is declared as implementation scope — it is not exposed transitively to consumers.
  • Two internal call sites in WebAuthProvider.kt and OidcUtils.kt had toLowerCase(Locale.ROOT) replaced with lowercase(Locale.ROOT) due to Kotlin 2.2.0 promoting this deprecation to an error. These are private/internal methods with no public surface impact.

Test infrastructure migration

  • Migrated from okhttp3.mockwebserver → mockwebserver3 package (new artifact in OkHttp 5.x)
  • Adapted to MockResponse.Builder() pattern (immutable responses)
  • RecordedRequest.path → .target, getHeader() → headers[], shutdown() → close()
  • Null-safe body handling (ByteString? instead of Buffer)
  • Re-enabled 2 @ignore'd tests in WebAuthProviderTest.kt that now pass with OkHttp 5.x

References

SDK-7768

Testing

Build Passed
Unit Test Passed

Checklist

@utkrishtsahu utkrishtsahu requested a review from a team as a code owner February 12, 2026 03:22
@utkrishtsahu utkrishtsahu changed the title Upgrade OkHttp to 5.0.0 and Kotlin to 2.2.0; migrate tests to mockweb… Upgrade OkHttp to 5.0.0 and Kotlin to 2.2.0 and removed @ignore testcases. Feb 12, 2026
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