MCPcopy
hub / github.com/ory/kratos / NewClientWithCookies

Function NewClientWithCookies

pkg/testhelpers/handler_mock.go:94–98  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

92}
93
94func NewClientWithCookies(t *testing.T) *http.Client {
95 cj, err := cookiejar.New(&cookiejar.Options{})
96 require.NoError(t, err)
97 return &http.Client{Jar: cj}
98}
99
100func NewNoRedirectClientWithCookies(t *testing.T) *http.Client {
101 cj, err := cookiejar.New(&cookiejar.Options{})

Calls

no outgoing calls

Tested by 15

TestManagerHTTPFunction · 0.74
TestSessionWhoAmIFunction · 0.74
TestIsNotAuthenticatedFunction · 0.74
TestIsAuthenticatedFunction · 0.74
TestGetFlowFunction · 0.74
TestOIDCStrategyOrderFunction · 0.74
TestGetFlowFunction · 0.74