git.iko.soy/typeable/oauth2-proxy
on master help sign in
Remove EmailDomain verification from GitLab provider
4a54c94Nick Meves
CHANGELOG.md+1−2
@@ -26,11 +26,10 @@
26## Changes since v6.1.1
26## Changes since v6.1.1
27
27
28- [#825](https://github.com/oauth2-proxy/oauth2-proxy/pull/825) Fix code coverage reporting on GitHub actions(@JoelSpeed)
28- [#825](https://github.com/oauth2-proxy/oauth2-proxy/pull/825) Fix code coverage reporting on GitHub actions(@JoelSpeed)
29−- [#767](https://github.com/oauth2-proxy/oauth2-proxy/pull/796) Deprecate GetUserName & GetEmailAdress for EnrichSessionState (@NickMeves)
29+- [#796](https://github.com/oauth2-proxy/oauth2-proxy/pull/796) Deprecate GetUserName & GetEmailAdress for EnrichSessionState (@NickMeves)
30- [#705](https://github.com/oauth2-proxy/oauth2-proxy/pull/705) Add generic Header injectors for upstream request and response headers (@JoelSpeed)
30- [#705](https://github.com/oauth2-proxy/oauth2-proxy/pull/705) Add generic Header injectors for upstream request and response headers (@JoelSpeed)
31- [#753](https://github.com/oauth2-proxy/oauth2-proxy/pull/753) Pass resource parameter in login url (@codablock)
31- [#753](https://github.com/oauth2-proxy/oauth2-proxy/pull/753) Pass resource parameter in login url (@codablock)
32- [#789](https://github.com/oauth2-proxy/oauth2-proxy/pull/789) Add `--skip-auth-route` configuration option for `METHOD=pathRegex` based allowlists (@NickMeves)
32- [#789](https://github.com/oauth2-proxy/oauth2-proxy/pull/789) Add `--skip-auth-route` configuration option for `METHOD=pathRegex` based allowlists (@NickMeves)
33−- [#767](https://github.com/oauth2-proxy/oauth2-proxy/pull/796) Deprecate GetUserName & GetEmailAdress for EnrichSessionState (@NickMeves)
34- [#575](https://github.com/oauth2-proxy/oauth2-proxy/pull/575) Stop accepting legacy SHA1 signed cookies (@NickMeves)
33- [#575](https://github.com/oauth2-proxy/oauth2-proxy/pull/575) Stop accepting legacy SHA1 signed cookies (@NickMeves)
35- [#722](https://github.com/oauth2-proxy/oauth2-proxy/pull/722) Validate Redis configuration options at startup (@NickMeves)
34- [#722](https://github.com/oauth2-proxy/oauth2-proxy/pull/722) Validate Redis configuration options at startup (@NickMeves)
36- [#791](https://github.com/oauth2-proxy/oauth2-proxy/pull/791) Remove GetPreferredUsername method from provider interface (@NickMeves)
35- [#791](https://github.com/oauth2-proxy/oauth2-proxy/pull/791) Remove GetPreferredUsername method from provider interface (@NickMeves)
pkg/validation/options.go−1
@@ -273,7 +273,6 @@ func parseProviderInfo(o *options.Options, msgs []string) []string {
273 case *providers.GitLabProvider:
273 case *providers.GitLabProvider:
274 p.AllowUnverifiedEmail = o.InsecureOIDCAllowUnverifiedEmail
274 p.AllowUnverifiedEmail = o.InsecureOIDCAllowUnverifiedEmail
275 p.Groups = o.GitLabGroup
275 p.Groups = o.GitLabGroup
276− p.EmailDomains = o.EmailDomains
277
276
278 if o.GetOIDCVerifier() != nil {
277 if o.GetOIDCVerifier() != nil {
279 p.Verifier = o.GetOIDCVerifier()
278 p.Verifier = o.GetOIDCVerifier()
providers/gitlab.go+1−3
@@ -15,9 +15,7 @@ import (
15type GitLabProvider struct {
15type GitLabProvider struct {
16 *ProviderData
16 *ProviderData
17
17
18− Groups []string
18+ Groups []string
19− EmailDomains []string
20−
21 Verifier *oidc.IDTokenVerifier
19 Verifier *oidc.IDTokenVerifier
22 AllowUnverifiedEmail bool
20 AllowUnverifiedEmail bool
23}
21}