-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]>
- Loading branch information
1 parent
2d4f7c0
commit 36ba445
Showing
22 changed files
with
1,059 additions
and
346 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.