mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-23 00:34:48 -06:00
36ba4454e8
Allow OPA to issue JWT's which it uses to authenticate a configured OAuth2 client, as described in RFC7523. This replaces the client_secret as the actual credential and allows for either using an entirely new grant type called "JWT bearer", or using the previously supported client_credentials grant type, only with the client_secret replaced by a signed JWT. This change covers both scenarios described in RFC7523. Other changes made to accomodate this feature: - Add `private_key` attribute to keys struct to allow for both public and private keys to be stored there. - Refactored the keys configuration struct and logic to its own package no longer coupled to bundles. Closes #3055 Signed-off-by: Anders Eknert <anders@eknert.com>