AuthN: Implement requester interface for identity (#75618)

* AuthN: Implement identity.Requester interface for authn.Identity

* AuthN: Replace OrgRole with GetOrgRole

* IDForwarding: skip converting to SignedInUser

* Pass identity directly in permission sync hook
This commit is contained in:
Karl Persson
2023-09-28 16:37:32 +02:00
committed by GitHub
parent 2fe4ecde19
commit fd2235b5ad
4 changed files with 121 additions and 21 deletions
@@ -62,7 +62,7 @@ func TestAnonymous_Authenticate(t *testing.T) {
assert.Equal(t, true, identity.ID == "")
assert.Equal(t, tt.org.ID, identity.OrgID)
assert.Equal(t, tt.org.Name, identity.OrgName)
assert.Equal(t, tt.cfg.AnonymousOrgRole, string(identity.Role()))
assert.Equal(t, tt.cfg.AnonymousOrgRole, string(identity.GetOrgRole()))
}
})
}