Skip to content

fix: accept JWKS responses with +json content types#1

Merged
zmstone merged 1 commit into
emqx-v3.2from
260416-accept-jwks-plus-json
Apr 18, 2026
Merged

fix: accept JWKS responses with +json content types#1
zmstone merged 1 commit into
emqx-v3.2from
260416-accept-jwks-plus-json

Conversation

@zmstone

@zmstone zmstone commented Apr 16, 2026

Copy link
Copy Markdown
Member

Summary

  • accept application/*+json response content types when decoding HTTP JSON payloads
  • add a regression test for JWKS responses served as application/jwk-set+json; charset=utf-8
  • keep existing application/json and application/jwt handling intact

Verification

  • escript /mnt/data/emqx/gwt/260416-sso-support-more-content-type/rebar3 eunit --module=oidcc_provider_configuration_worker_test in /mnt/data/emqx/oidcc
  • escript ../../rebar3 eunit --module=oidcc_provider_configuration_worker_test in deps/oidcc from the EMQX checkout
  • env PROFILE=emqx-enterprise SUITES=apps/emqx_dashboard_sso/test/emqx_dashboard_sso_oidc_SUITE.erl CASES=t_jwks_content_type_suffix make apps/emqx_dashboard_sso-ct in the EMQX checkout

Notes

  • This fixes the application/jwk-set+json; charset=utf-8 JWKS failure reported in EMQX 6.1.0 Docker OIDC SSO Login Fails with provider_not_ready emqx#16834.
  • A broader docker-backed apps/emqx_dashboard_sso CT run in EMQX was attempted, but the run was blocked by unrelated environment failures in other suites (quicer/libcrypto.so.1.1 and subsequent dirty suite state), so the focused regression coverage above is the relevant verification for this change.

@zmstone zmstone force-pushed the 260416-accept-jwks-plus-json branch 3 times, most recently from f659eba to a6f7f5e Compare April 17, 2026 17:27
@zmstone zmstone force-pushed the 260416-accept-jwks-plus-json branch from a6f7f5e to fcdb4b1 Compare April 17, 2026 17:37
@coveralls

Copy link
Copy Markdown

Coverage Report for CI Build 5

Warning

No base build found for commit 7c55e56 on emqx-v3.2.
Coverage changes can't be calculated without a base build.
If a base build is processing, this comment will update automatically when it completes.

Coverage: 92.123%

Details

  • Patch coverage: 3 uncovered changes across 1 file (12 of 15 lines covered, 80.0%).

Uncovered Changes

File Changed Covered %
src/oidcc_authorization.erl 5 2 40.0%

Coverage Regressions

Requires a base build to compare against. How to fix this →


Coverage Stats

Coverage Status
Relevant Lines: 1168
Covered Lines: 1076
Line Coverage: 92.12%
Coverage Strength: 153.83 hits per line

💛 - Coveralls

@zmstone zmstone merged commit 63444f0 into emqx-v3.2 Apr 18, 2026
19 checks passed
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.

4 participants