oauth2-proxy/providers
Daniel Mersch 7731437af4
feat: support for multiple github orgs (#3072)
* fix for github teams

* Update github.go

* added errorhandling

* Update github.md

* refactored GitHub provider

refactored hasOrg, hasOrgAndTeams and hasTeam into hasAccess to stay within function limit

* reverted Refactoring

* refactored github.go

- joined hasOrgAndTeamAccess into checkRestrictions

* refactored github.go

- reduced number of returns of function checkRestrictions to 4

* updated GitHub provider to accept legacy team ids

* GoFmt and golangci-lint

Formatted with GoFmt and followed recommendations of GoLint

* added Tests

added Tests for checkRestrictions.

* refactored in maintainer feedback

* Removed code, documentation and tests for legacy ids

* add changelog and update docs

---------

Signed-off-by: Jan Larwig <jan@larwig.com>
Co-authored-by: Jan Larwig <jan@larwig.com>
2025-05-29 18:11:07 +02:00
..
adfs.go bugfix: OIDCConfig based providers are not respecting flags and configs (#2299) 2023-11-25 11:32:31 +00:00
adfs_test.go chore(deps): Updated to ginkgo v2 (#2459) 2024-07-18 22:41:02 +02:00
auth_test.go Integrate claim extractor into providers 2022-02-16 10:28:33 +00:00
azure.go chore(deps): drop golang.org/x/exp/{slices,maps} (#3065) 2025-05-26 12:20:49 +02:00
azure_test.go chore: Updated go-jwt to v5 2024-03-04 01:42:00 +01:00
bitbucket.go Move provider initialisation into providers package 2022-02-16 10:38:05 +00:00
bitbucket_test.go Move provider initialisation into providers package 2022-02-16 10:38:05 +00:00
digitalocean.go Fix Linting Errors (#1835) 2022-10-21 11:57:51 +01:00
digitalocean_test.go Fix import path for v7 (#800) 2020-09-29 17:44:42 +01:00
facebook.go Integrate claim extractor into providers 2022-02-16 10:28:33 +00:00
facebook_test.go Move provider URLs to package level vars 2020-07-19 18:34:55 +01:00
gitea_test.go fix gitea token validation by allowing custom validation url and extracting the proper base api url for github cloud, github enterprise and gitea (#2194) 2023-09-14 10:09:57 +01:00
github.go feat: support for multiple github orgs (#3072) 2025-05-29 18:11:07 +02:00
github_test.go feat: support for multiple github orgs (#3072) 2025-05-29 18:11:07 +02:00
gitlab.go upgrading to go 1.21 (#2235) 2024-01-22 13:39:53 +00:00
gitlab_test.go chore(deps): Updated to ginkgo v2 (#2459) 2024-07-18 22:41:02 +02:00
google.go chore(deps): update all golang dependencies 2024-09-23 16:38:40 +02:00
google_test.go chore(lint): fix staticcheck issues (#3061) 2025-05-26 12:29:34 +02:00
internal_util.go Issue 1878: Validate URL call does not correctly honor already set UR… (#1951) 2023-02-10 18:36:13 +00:00
internal_util_test.go Updated linters 2023-10-24 16:37:57 +02:00
keycloak.go upgrading to go 1.21 (#2235) 2024-01-22 13:39:53 +00:00
keycloak_oidc.go fix: role extraction from access token in keycloak oidc (#1916) 2025-04-28 10:23:19 +01:00
keycloak_oidc_test.go fix: role extraction from access token in keycloak oidc (#1916) 2025-04-28 10:23:19 +01:00
keycloak_test.go chore(deps): Updated to ginkgo v2 (#2459) 2024-07-18 22:41:02 +02:00
linkedin.go Fix Linting Errors (#1835) 2022-10-21 11:57:51 +01:00
linkedin_test.go Update LinkedIn provider validate URL (#1444) 2021-11-19 21:36:33 +00:00
logingov.go Fix linting after updating golangci-lint to 1.62.2 2024-12-31 13:14:39 +01:00
logingov_test.go chore: Updated go-jwt to v5 2024-03-04 01:42:00 +01:00
ms_entra_id.go fix(entra-id): use federated credentials for refresh token (#3031) 2025-04-25 09:59:09 +02:00
ms_entra_id_test.go chore(lint): fix staticcheck issues (#3061) 2025-05-26 12:29:34 +02:00
nextcloud.go upgrading to go 1.21 (#2235) 2024-01-22 13:39:53 +00:00
nextcloud_test.go Integrate claim extractor into providers 2022-02-16 10:28:33 +00:00
oidc.go feat: Replace default Go user-agent with oauth2-proxy and version (#2570) 2024-07-14 21:09:17 +01:00
oidc_test.go PKCE Support (#1541) 2022-03-13 10:08:33 +00:00
provider_data.go feat: allow to set non-default authorization request response mode (#3001) 2025-03-31 10:04:19 +02:00
provider_data_test.go chore: Updated go-jwt to v5 2024-03-04 01:42:00 +01:00
provider_default.go feat: allow to set non-default authorization request response mode (#3001) 2025-03-31 10:04:19 +02:00
provider_default_test.go feat: allow to set non-default authorization request response mode (#3001) 2025-03-31 10:04:19 +02:00
providers.go feat: allow to set non-default authorization request response mode (#3001) 2025-03-31 10:04:19 +02:00
providers_suite_test.go chore(deps): Updated to ginkgo v2 (#2459) 2024-07-18 22:41:02 +02:00
providers_test.go feature: static public keys file support for oidc provider 2025-01-11 12:09:23 +00:00
util.go Support for passing through URL query parameters from /oauth2/start to the ID provider's login URL. 2022-02-19 16:11:09 +00:00
util_test.go Refactor OIDC to EnrichSession 2020-12-21 16:51:52 -08:00