oauth2_proxy icon indicating copy to clipboard operation
oauth2_proxy copied to clipboard

Roles header with refresh configuration

Open sto1t opened this issue 9 years ago • 10 comments

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 https://github.com/bitly/oauth2_proxy/issues/174#issuecomment-1578273584) 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 avatar Jul 13 '16 16:07 sto1t

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 https://github.com/rundeck/rundeck/pull/1883

statik avatar Jul 14 '16 13:07 statik

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

kfowlks avatar Aug 20 '16 18:08 kfowlks

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

olvesh avatar May 19 '17 07:05 olvesh

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.

therc avatar Jul 20 '17 20:07 therc

See issue #428

statik avatar Jul 23 '17 13:07 statik

bump. Any likelihood of a merge?

vpm-bradleyhession avatar Apr 30 '18 10:04 vpm-bradleyhession

@tpherndon

vpm-bradleyhession avatar Apr 30 '18 14:04 vpm-bradleyhession

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

hany avatar May 23 '18 21:05 hany

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

gargrag avatar Oct 24 '18 22:10 gargrag

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

martin-loetzsch avatar Dec 06 '18 21:12 martin-loetzsch