MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / createOIDCRequest

Function createOIDCRequest

rest/oidc_api_test.go:996–1001  ·  view source on GitHub ↗

createOIDCRequest creates the request with the sessionEndpoint and token put in. sessionEndpoint should end with "/_session".

(t *testing.T, sessionEndpoint string, token string)

Source from the content-addressed store, hash-verified

994// createOIDCRequest creates the request with the sessionEndpoint and token put in.
995// sessionEndpoint should end with "/_session".
996func createOIDCRequest(t *testing.T, sessionEndpoint string, token string) *http.Request {
997 request, err := http.NewRequest(http.MethodPost, sessionEndpoint, strings.NewReader(`{}`))
998 require.NoError(t, err, "Error creating new request")
999 request.Header.Add("Authorization", BearerToken+" "+token)
1000 return request
1001}
1002
1003// E2E test that checks OpenID Connect Implicit Flow.
1004func TestOpenIDConnectImplicitFlow(t *testing.T) {

Calls 1

AddMethod · 0.45

Tested by

no test coverage detected