You've already forked oauth2-proxy
mirror of
https://github.com/oauth2-proxy/oauth2-proxy.git
synced 2025-06-15 00:15:00 +02:00
Use comma separated multiple values for header (#799)
* Use comma separated value for multiple claims * Fix lint error * Fix more tests * Fix one more test * Always flatten the headers * Ensure we test the real multi-groups * Only update map when necessary * Update CHANGELOG * Move to the right location of change log * Fix blank line
This commit is contained in:
@ -612,7 +612,7 @@ func TestPassGroupsHeadersWithGroups(t *testing.T) {
|
||||
rw = httptest.NewRecorder()
|
||||
proxy.ServeHTTP(rw, req)
|
||||
|
||||
assert.Equal(t, groups, req.Header["X-Forwarded-Groups"])
|
||||
assert.Equal(t, []string{"a,b"}, req.Header["X-Forwarded-Groups"])
|
||||
}
|
||||
|
||||
type PassAccessTokenTest struct {
|
||||
|
Reference in New Issue
Block a user