Skip to content

6.0.0

Choose a tag to compare

@github-actions github-actions released this 03 Aug 10:05
· 12 commits to master since this release
b51e242

What's Changed

⚠️ Breaking Changes

  • mock-oauth2-server no longer bundles ch.qos.logback:logback-classic nor kotlinx-serialization-json in its library.
    • If your test logs went quiet, add testRuntimeOnly("ch.qos.logback:logback-classic:<version>"). slf4j-api still comes transitively.
  • The debugger UI (/<issuer>/debugger and /<issuer>/debugger/callback) can no longer target an external identity provider.
  • DebuggerRequestHandler now takes an OAuth2HttpServer instead of an Ssl?.
  • With (#1002), the library now uses Jackson 3 (tools.jackson.*) instead of Jackson 2 (com.fasterxml.jackson.*).
    • Consumers on Jackson 2 are unaffected. Jackson 3 uses a different group ID and package, and still depends on jackson-annotations 2.x.
    • no.nav.security.mock.oauth2.http.objectMapper and the deserializers nested in OAuth2Config are now internal. Construct your own mapper if you used objectMapper.
  • NettyWrapper rejects request bodies above 1 MiB with 413. This affects the standalone server and Docker image; MockWebServerWrapper is unaffected.

See also the migration guide.

🐛 Bug Fixes

  • fix: support subject request mappings for password grant (#983) @ybelMekk
  • fix: restrict the debugger to this server's own endpoints (#1000) @tronghn
  • fix: cap Netty request body aggregation at 1 MiB (#1001) @tronghn

🧰 Maintenance

  • test: stabilize standalone and server tests (#974) @ybelMekk
  • build: keep logback-classic out of the published artifact (#998) @tronghn
  • build: move kotlinx-serialization-json to testImplementation (#997) @pcmoen

⬆️ Dependency upgrades

New Contributors

Full Changelog: 5.0.2...5.0.3