We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b19e9db commit 41ed0a6Copy full SHA for 41ed0a6
1 file changed
pkg/oidc/oidc_test.go
@@ -74,7 +74,7 @@ func withServer(t *testing.T, fn func(m *mockoidc.MockOIDC, storage *sqlstorage.
74
75
// As our oidc provider, is also a relying party (it delegates authentication), we need to construct a relying party
76
// with information from the mock
77
- cl := http.DefaultClient
+ cl := &http.Client{}
78
cl.Transport = RoundTripper{http.DefaultTransport}
79
serverRelyingParty, err := rp.NewRelyingPartyOIDC(mockOIDC.Issuer(), mockOIDC.ClientID, mockOIDC.ClientSecret,
80
fmt.Sprintf("%s/authorize/callback", serverUrl), []string{"openid", "email"}, rp.WithHTTPClient(cl))
0 commit comments