authorize: fix headers when impersonating

- Add user impersonation docs.
- Add navbar link to v0.0.5 docs.
This commit is contained in:
Bobby DeSimone 2019-06-11 15:40:28 -07:00
parent fb92466f45
commit 554e62108f
No known key found for this signature in database
GPG key ID: AEE4CF12FE86D07E
8 changed files with 134 additions and 21 deletions

View file

@ -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 {