Nimbus 8+ prevent auto-discover mechanism in Keycloak 15

Issue #377 invalid
black@t created an issue

We are using the latest Spring Security 5.4.9 that relies still on the latest 8+ Nimbus Library and it is affected by this bug.

The bug has been fixed in Nimbus version 9+ and it would be good to have the changes backported to version 8+ and released so that we can upgrade our Spring Security installation.

In detail:

  1. RFC 8705 (https://datatracker.ietf.org/doc/html/rfc8705)) introduces a new mechanism that allows OAuth2 servers to bind tokens to certificates used by OAuth2 clients making mutual TLS connections. For this purpose, this RFC introduces an optional metadata field called mtls_endpoint_aliases that allow clients to discover the special end points when making mutual TLS connections.
  2. The com.nimbusds:oauth2-oidc-sdk:jar:8.36.2 library which an upstream dependency of the Spring Security does not correctly parse the value of the mtls_endpoint_aliases field..)

Thanks a lot for your attention.

Comments (3)

  1. Log in to comment