distributed-system-analysis / pbench

A benchmarking and performance analysis framework
http://distributed-system-analysis.github.io/pbench/
GNU General Public License v3.0
188 stars 108 forks source link

Separate `audience` from `client` #3574

Closed dbutenhof closed 1 year ago

dbutenhof commented 1 year ago

PBENCH-1296

We've discovered that the configuration of our auth.redhat.com Keycloak client does not give us the client name as an id in the decoded JWT token's aud claim, which was causing the server to reject apparently valid tokens.

This appears to violate the OIDC specification, but for flexibility (and expediency) this PR separates the configuration of "OIDC client name" and "expected aud claim" so that we can accommodate either behavior without further code changes. (That is, the openid client and audience values could be identical if we know the OIDC server follows the specification.)