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

Function GetOIDCClientContext

auth/oidc.go:795–798  ·  view source on GitHub ↗

GetOIDCClientContext returns a new Context that carries the provided HTTP client with TLS certificate verification disabled when insecureSkipVerify is true and enabled otherwise.

(insecureSkipVerify bool)

Source from the content-addressed store, hash-verified

793// with TLS certificate verification disabled when insecureSkipVerify is true and
794// enabled otherwise.
795func GetOIDCClientContext(insecureSkipVerify bool) context.Context {
796 client := base.GetHttpClient(insecureSkipVerify)
797 return oidc.ClientContext(context.Background(), client)
798}

Callers 5

handleOIDCCallbackMethod · 0.92
handleOIDCRefreshMethod · 0.92
initOIDCClientMethod · 0.85
DiscoverConfigMethod · 0.85
standardDiscoveryMethod · 0.85

Calls 1

GetHttpClientFunction · 0.92

Tested by

no test coverage detected