Skip to content
This repository has been archived by the owner on Jan 24, 2019. It is now read-only.

Roles header with refresh configuration #277

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

sto1t
Copy link

@sto1t sto1t commented Jul 13, 2016

This enhancement provides a new configuration to send roles as a header with an implementation for the Github provider.

Roles are not stored in the cookie (per #174 (comment)) but in the case of a restart of the oauth2_proxy application, the roles are retrieved.

Additionally, metered updates of roles can be enabled with the cookie-refresh configuration to apply privilege changes to the current session.

sto1t and others added 12 commits June 1, 2016 22:17
Passing in arbitrary string for now; next up is grab roles from provider.
This cleans up the optional RoleProvider interface and fixes
some test crashes where PassRolesHeader was defaulting to true in
the test suite.
Fix case of restarted proxy causing need to refetch roles, enable metered role updates
via cookie refresh configuration
# Conflicts:
#	oauthproxy.go
#	options.go
#	providers/github.go
@statik
Copy link

statik commented Jul 14, 2016

This feature enables using oauth2_proxy in front of Rundeck, and then roles in rundeck can be mapped from github team membership. Super handy! See rundeck/rundeck#1883

@kfowlks
Copy link

kfowlks commented Aug 20, 2016

This same functionality would also be useful for GitLab users. I believe the analogous to "Teams" in GitHub would be to use the "Groups" in GitLab

http://docs.gitlab.com/ee/api/groups.html#list-groups

@olvesh
Copy link

olvesh commented May 19, 2017

Looks like a useful feature. What is missing to get this merged? (apart from solving the conflicts..)

@therc
Copy link

therc commented Jul 20, 2017

I had opened feature request #386 but somehow managed to miss this until now. It would be nice to have the change merged, of course, but also have the parameter be a string, rather than a boolean, specifying the name of the header, for broader compatibility with upstreams.

@statik
Copy link

statik commented Jul 23, 2017

See issue #428

@vpm-bradleyhession
Copy link

bump. Any likelihood of a merge?

@vpm-bradleyhession
Copy link

@tpherndon

@hany
Copy link

hany commented May 23, 2018

Been looking for this for some time. Any chance this will get merged soon?

@gargrag
Copy link

gargrag commented Oct 24, 2018

Hi IT would be nice to have this feature, what's missing for merging?

@martin-loetzsch
Copy link

Fyi: there is an active discussion about forking this project here: #628

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

10 participants