oauth2-proxy/pkg/apis/options
Kevin Schu 25371ea4af
improved audience handling to support client credentials access tokens without aud claims (#1204)
* implementation draft

* add cfg options skip-au-when-missing && client-id-verification-claim; enhance the provider data verification logic for sake of the added options

* refactor configs, added logging and add additional claim verification

* simplify logic by just having one configuration similar to oidc-email-claim

* added internal oidc token verifier, so that aud check behavior can be managed with oauth2-proxy and is compatible with extra-jwt-issuers

* refactored verification to reduce complexity

* refactored verification to reduce complexity

* added docs

* adjust tests to support new OIDCAudienceClaim and OIDCExtraAudiences options

* extend unit tests and ensure that audience is set with the value of aud claim configuration

* revert filemodes and update docs

* update docs

* remove unneccesary logging, refactor audience existence check and added additional unit tests

* fix linting issues after rebase on origin/main

* cleanup: use new imports for migrated libraries after rebase on origin/main

* adapt mock in keycloak_oidc_test.go

* allow specifying multiple audience claims, fixed bug where jwt issuers client id was not the being considered and fixed bug where aud claims with multiple audiences has broken the whole validation

* fixed formatting issue

* do not pass the whole options struct to minimize complexity and dependency to the configuration structure

* added changelog entry

* update docs

Co-authored-by: Sofia Weiler <sofia.weiler@aoe.com>
Co-authored-by: Christian Zenker <christian.zenker@aoe.com>
2022-02-15 16:12:22 +00:00
..
util Ensure errors in tests are logged to the GinkgoWriter 2021-02-10 19:50:04 +00:00
alpha_options.go rename Upstreams to UpstreamConfig and its Configs member to Upstreams then 2021-09-17 12:37:57 +00:00
app.go Allow specifying URL as input for custom sign in logo (#1330) 2021-09-05 09:23:22 -07:00
common.go Generate reference page in configuration 2021-01-18 09:57:44 +00:00
common_test.go Introduce Duration so that marshalling works for duration strings 2020-11-19 10:35:29 +00:00
cookie.go Rename CookieOptions to Cookie 2020-07-05 09:18:21 +01:00
doc.go Generate reference page in configuration 2021-01-18 09:57:44 +00:00
header.go Some typos (#1222) 2021-06-02 19:41:30 +01:00
legacy_options.go improved audience handling to support client credentials access tokens without aud claims (#1204) 2022-02-15 16:12:22 +00:00
legacy_options_test.go improved audience handling to support client credentials access tokens without aud claims (#1204) 2022-02-15 16:12:22 +00:00
load.go Introduce alpha configuration loading 2020-12-01 08:56:49 +00:00
load_test.go improved audience handling to support client credentials access tokens without aud claims (#1204) 2022-02-15 16:12:22 +00:00
logging.go Request ID Logging (#1087) 2021-03-21 18:20:57 +00:00
options.go improved audience handling to support client credentials access tokens without aud claims (#1204) 2022-02-15 16:12:22 +00:00
options_suite_test.go Ensure errors in tests are logged to the GinkgoWriter 2021-02-10 19:50:04 +00:00
providers.go improved audience handling to support client credentials access tokens without aud claims (#1204) 2022-02-15 16:12:22 +00:00
server.go Add option to specify the tls-min-version for the server 2022-02-09 20:19:01 +01:00
sessions.go Support Password & SentinelPassword in Redis session store 2020-08-11 12:22:05 -07:00
upstreams.go rename Upstreams to UpstreamConfig and its Configs member to Upstreams then 2021-09-17 12:37:57 +00:00