Unable to use multiple public key for Signed JWT client authentication in RHBK

Solution Verified - Updated -

Issue

  • For Signed JWT client authentication, 2 public keys were added by importing "JSON Web Key Set" in RHBK. TheSigned JWT client authentication is successful with one public key while for the second public key the authentication fails and following error is seen in the logs:
PublicKey wasn't found in the storage. Requested kid: 'key1-id' . Available kids: '[key2-id]' 

Environment

  • Red Hat Build of Keycloak (RHBK)
    • 26.0.X

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content