mirror of
https://github.com/vmware-tanzu/pinniped.git
synced 2026-09-21 07:24:21 +00:00
Some updates based on PR review
This commit is contained in:
@@ -1119,10 +1119,10 @@ func TestAuthorizationEndpoint(t *testing.T) {
|
||||
req.Header.Set("Cookie", test.csrfCookie)
|
||||
}
|
||||
if test.customUsernameHeader != nil {
|
||||
req.Header.Set("X-Pinniped-Upstream-Username", *test.customUsernameHeader)
|
||||
req.Header.Set("X-Pinniped-Idp-Username", *test.customUsernameHeader)
|
||||
}
|
||||
if test.customPasswordHeader != nil {
|
||||
req.Header.Set("X-Pinniped-Upstream-Password", *test.customPasswordHeader)
|
||||
req.Header.Set("X-Pinniped-Idp-Password", *test.customPasswordHeader)
|
||||
}
|
||||
rsp := httptest.NewRecorder()
|
||||
subject.ServeHTTP(rsp, req)
|
||||
|
||||
Reference in New Issue
Block a user