1
0
mirror of https://github.com/oauth2-proxy/oauth2-proxy.git synced 2025-06-15 00:15:00 +02:00

Allow users to choose detailed error messages on error pages

This commit is contained in:
Joel Speed
2021-02-10 19:34:19 +00:00
committed by Joel Speed
parent a63ed0225c
commit 6ecbc7bc4e
5 changed files with 111 additions and 17 deletions

View File

@ -2815,7 +2815,7 @@ func TestProxyAllowedGroups(t *testing.T) {
test.proxy.ServeHTTP(test.rw, test.req)
if tt.expectUnauthorized {
assert.Equal(t, http.StatusUnauthorized, test.rw.Code)
assert.Equal(t, http.StatusForbidden, test.rw.Code)
} else {
assert.Equal(t, http.StatusOK, test.rw.Code)
}