mirror of
https://github.com/oauth2-proxy/oauth2-proxy.git
synced 2024-11-28 09:08:44 +02:00
f3209a40e1
* extract email from id_token for azure provider this change fixes a bug when --resource is specified with non-Graph api and the access token destined to --resource is used to call Graph api * fixed typo * refactor GetEmailAddress to EnrichSessionState * make getting email from idtoken best effort and fall back to previous behavior when it's absent * refactor to use jwt package to extract claims * fix lint * refactor unit tests to use test table refactor the get email logic from profile api * addressing feedback * added oidc verifier to azure provider and extract email from id_token if present * fix lint and codeclimate * refactor to use oidc verifier to verify id_token if oidc is configured * fixed UT * addressed comments * minor refactor * addressed feedback * extract email from id_token first and fallback to access token * fallback to access token as well when id_token doesn't have email claim * address feedbacks * updated change log! |
||
---|---|---|
.. | ||
auth_test.go | ||
azure_test.go | ||
azure.go | ||
bitbucket_test.go | ||
bitbucket.go | ||
digitalocean_test.go | ||
digitalocean.go | ||
facebook_test.go | ||
facebook.go | ||
github_test.go | ||
github.go | ||
gitlab_test.go | ||
gitlab.go | ||
google_test.go | ||
google.go | ||
internal_util_test.go | ||
internal_util.go | ||
keycloak_test.go | ||
keycloak.go | ||
linkedin_test.go | ||
linkedin.go | ||
logingov_test.go | ||
logingov.go | ||
nextcloud_test.go | ||
nextcloud.go | ||
oidc_test.go | ||
oidc.go | ||
provider_data_test.go | ||
provider_data.go | ||
provider_default_test.go | ||
provider_default.go | ||
providers_suite_test.go | ||
providers.go | ||
util_test.go | ||
util.go |