authorize: remove service account impersonate user id, email and groups (#2365)

This commit is contained in:
Caleb Doxsey 2021-07-15 09:31:45 -06:00 committed by GitHub
parent 86b56ffd37
commit cef08a1c2d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 41 additions and 78 deletions

View file

@ -244,7 +244,7 @@ func TestEvaluator(t *testing.T) {
t.Run("impersonate email", func(t *testing.T) {
t.Run("allowed", func(t *testing.T) {
res, err := eval(t, options, []proto.Message{
&user.ServiceAccount{
&session.Session{
Id: "session1",
UserId: "user1",
ImpersonateEmail: proto.String("a@example.com"),