OAuth2 JWT bearer grant type and JWT client auth
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>
A
Anders Eknert committed
36ba4454e8caab05119c9f95386002e601c4b7a1
Parent: 2d4f7c0