Merge remote-tracking branch 'upstream/main' into secret-generation

This commit is contained in:
Andrew Keesler
2020-12-15 09:27:23 -05:00
7 changed files with 37 additions and 5 deletions

View File

@@ -477,6 +477,8 @@ func TestCallbackEndpoint(t *testing.T) {
t.Logf("response: %#v", rsp)
t.Logf("response body: %q", rsp.Body.String())
testutil.RequireSecurityHeaders(t, rsp)
if test.wantExchangeAndValidateTokensCall != nil {
require.Equal(t, 1, test.idp.ExchangeAuthcodeAndValidateTokensCallCount())
test.wantExchangeAndValidateTokensCall.Ctx = req.Context()