mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-23 19:49:13 +02:00
revert filtering IdP groups claim groups
This commit is contained in:
parent
596bec9b9b
commit
7fc6d93b8c
2 changed files with 2 additions and 2 deletions
|
@ -334,7 +334,6 @@ func (e *headersEvaluatorEvaluation) getGroups(ctx context.Context) []string {
|
|||
|
||||
s, _ := e.getSessionOrServiceAccount(ctx)
|
||||
groups, _ := getClaimStringSlice(s, "groups")
|
||||
groups = e.filterGroups(groups)
|
||||
return groups
|
||||
}
|
||||
|
||||
|
|
|
@ -517,7 +517,8 @@ func TestHeadersEvaluator_JWTGroupsFilter(t *testing.T) {
|
|||
"no filtering", nil, nil, "SESSION-10",
|
||||
[]any{"10", "20", "30", "40", "50", "GROUP-10", "GROUP-20", "GROUP-30", "GROUP-40", "GROUP-50"},
|
||||
},
|
||||
{"groups claim", []string{"foo", "quux"}, nil, "SESSION-11", []any{"foo"}},
|
||||
// filtering has no effect on groups from an IdP "groups" claim
|
||||
{"groups claim", []string{"foo", "quux"}, nil, "SESSION-11", []any{"foo", "bar", "baz"}},
|
||||
}
|
||||
|
||||
ctx := storage.WithQuerier(context.Background(), storage.NewStaticQuerier(records...))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue