1
0
mirror of https://github.com/oauth2-proxy/oauth2-proxy.git synced 2025-01-10 04:18:14 +02:00
oauth2-proxy/pkg/validation
Mathieu Lecarme d67d6e3152
Add authorization support for Gitlab projects (#630)
* Add support for gitlab projets

* Add group membership in state

* Use prefixed allowed groups everywhere

* Fix: remove unused function

* Fix: rename func that add data to session

* Simplify projects and groups session funcs

* Add project access level for gitlab projects

* Fix: default access level

* Add per project access level

* Add user email when missing access level

* Fix: harmonize errors

* Update docs and flags description for gitlab project

* Add test with both projects and groups

* Fix: log error message

Co-authored-by: Joel Speed <Joel.speed@hotmail.co.uk>

* Fix: make doc a markdown link

* Add notes about read_api scope for projects

* Fix: Verifier override in Gitlab Provider

This commit fixes a bug caused by an override of the Verifier value from *ProviderData inside GitlabProvider struct

* Fix: ensure data in session before using it

* Update providers/gitlab.go

Co-authored-by: Nick Meves <nick.meves@greenhouse.io>

* Rename gitlab project initializer

* Improve return value readbility

* Use splitN

* Handle space delimiters in set project scope

* Reword comment for AddProjects

* Fix: typo

* Rework error handling in addProjectsToSession

* Reduce branching complexity in addProjectsToSession

* Fix: line returns

* Better comment for addProjectsToSession

* Fix: enrich session comment

* Fix: email domains is handled before provider mechanism

* Add archived project unit test

* Fix: emails handling in gitlab provider

Co-authored-by: Wilfried OLLIVIER <wollivier@bearstech.com>
Co-authored-by: Joel Speed <Joel.speed@hotmail.co.uk>
Co-authored-by: Nick Meves <nick.meves@greenhouse.io>
2020-12-05 10:57:33 -08:00
..
allowlist_test.go Improve AllowedRoute test table formatting 2020-10-07 10:13:41 -07:00
allowlist.go Improve AllowedRoute test table formatting 2020-10-07 10:13:41 -07:00
common_test.go SecretSource.Value should be plain text in memory 2020-12-01 08:56:46 +00:00
common.go SecretSource.Value should be plain text in memory 2020-12-01 08:56:46 +00:00
cookie_test.go Fix import path for v7 (#800) 2020-09-29 17:44:42 +01:00
cookie.go Fix import path for v7 (#800) 2020-09-29 17:44:42 +01:00
header_test.go SecretSource.Value should be plain text in memory 2020-12-01 08:56:46 +00:00
header.go Add validation for Headers struct 2020-11-07 17:16:54 +00:00
logging.go Fix import path for v7 (#800) 2020-09-29 17:44:42 +01:00
options_test.go Integrate new header injectors with OAuth2 Proxy 2020-11-07 17:16:58 +00:00
options.go Add authorization support for Gitlab projects (#630) 2020-12-05 10:57:33 -08:00
sessions_test.go Integrate new header injectors with OAuth2 Proxy 2020-11-07 17:16:58 +00:00
sessions.go Integrate new header injectors with OAuth2 Proxy 2020-11-07 17:16:58 +00:00
upstreams_test.go Introduce Duration so that marshalling works for duration strings 2020-11-19 10:35:29 +00:00
upstreams.go Add DefaultUpstreamFlushInterval to replace magic time.Second value 2020-11-19 10:39:21 +00:00
utils.go Add validation for Headers struct 2020-11-07 17:16:54 +00:00
validation_suite_test.go Fix import path for v7 (#800) 2020-09-29 17:44:42 +01:00