git.iko.soy/typeable/oauth2-proxy
on master help sign in
Add comment; update changelog
39d2f28Phil Taprogge
CHANGELOG.md+1
@@ -2,6 +2,7 @@
2
2
3## Changes since v3.2.0
3## Changes since v3.2.0
4
4
5+- [#146](https://github.com/pusher/oauth2_proxy/pull/146) Use full email address as `User` if the auth response did not contains a `User` field (@gargath)
5- [#144](https://github.com/pusher/oauth2_proxy/pull/144) Use GO 1.12 for ARM builds (@kskewes)
6- [#144](https://github.com/pusher/oauth2_proxy/pull/144) Use GO 1.12 for ARM builds (@kskewes)
6- [#142](https://github.com/pusher/oauth2_proxy/pull/142) ARM Docker USER fix (@kskewes)
7- [#142](https://github.com/pusher/oauth2_proxy/pull/142) ARM Docker USER fix (@kskewes)
7- [#52](https://github.com/pusher/oauth2_proxy/pull/52) Logging Improvements (@MisterWil)
8- [#52](https://github.com/pusher/oauth2_proxy/pull/52) Logging Improvements (@MisterWil)
oauthproxy_test.go+2
@@ -334,6 +334,8 @@ func TestBasicAuthPassword(t *testing.T) {
334 rw = httptest.NewRecorder()
334 rw = httptest.NewRecorder()
335 proxy.ServeHTTP(rw, req)
335 proxy.ServeHTTP(rw, req)
336
336
337+ // The username in the basic auth credentials is expected to be equal to the email address from the
338+ // auth response, so we use the same variable here.
337 expectedHeader := "Basic " + base64.StdEncoding.EncodeToString([]byte(emailAddress+":"+opts.BasicAuthPassword))
339 expectedHeader := "Basic " + base64.StdEncoding.EncodeToString([]byte(emailAddress+":"+opts.BasicAuthPassword))
338 assert.Equal(t, expectedHeader, rw.Body.String())
340 assert.Equal(t, expectedHeader, rw.Body.String())
339 providerServer.Close()
341 providerServer.Close()