mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-02 08:19:23 +02:00
authorize: fix headers when impersonating
- Add user impersonation docs. - Add navbar link to v0.0.5 docs.
This commit is contained in:
parent
fb92466f45
commit
554e62108f
8 changed files with 134 additions and 21 deletions
|
@ -27,6 +27,7 @@ func TestAuthorizeGRPC_Authorize(t *testing.T) {
|
|||
wantErr bool
|
||||
}{
|
||||
{"good", "hello.pomerium.io", &sessions.SessionState{User: "admin@pomerium.io", Email: "admin@pomerium.io"}, true, false},
|
||||
{"impersonate request", "hello.pomerium.io", &sessions.SessionState{User: "admin@pomerium.io", Email: "admin@pomerium.io", ImpersonateEmail: "other@other.example"}, true, false},
|
||||
{"session cannot be nil", "hello.pomerium.io", nil, false, true},
|
||||
}
|
||||
for _, tt := range tests {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue