You've already forked oauth2-proxy
mirror of
https://github.com/oauth2-proxy/oauth2-proxy.git
synced 2025-08-10 22:51:31 +02:00
Add comment; update changelog
This commit is contained in:
@@ -334,6 +334,8 @@ func TestBasicAuthPassword(t *testing.T) {
|
||||
rw = httptest.NewRecorder()
|
||||
proxy.ServeHTTP(rw, req)
|
||||
|
||||
// The username in the basic auth credentials is expected to be equal to the email address from the
|
||||
// auth response, so we use the same variable here.
|
||||
expectedHeader := "Basic " + base64.StdEncoding.EncodeToString([]byte(emailAddress+":"+opts.BasicAuthPassword))
|
||||
assert.Equal(t, expectedHeader, rw.Body.String())
|
||||
providerServer.Close()
|
||||
|
Reference in New Issue
Block a user