mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-18 11:37:08 +02:00
proxy: fix sign out redirect (#3827)
* proxy: fix sign out redirect * add test
This commit is contained in:
parent
c048af7523
commit
753eeff12f
2 changed files with 8 additions and 2 deletions
|
@ -67,6 +67,10 @@ func TestProxy_SignOut(t *testing.T) {
|
|||
if status := w.Code; status != tt.wantStatus {
|
||||
t.Errorf("status code: got %v want %v", status, tt.wantStatus)
|
||||
}
|
||||
u, err := urlutil.ParseAndValidateURL(w.HeaderMap.Get("Location"))
|
||||
if assert.NoError(t, err) {
|
||||
assert.Equal(t, "/.pomerium/sign_out", u.Path)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue