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

Method Config

auth/oidc.go:118–122  ·  view source on GitHub ↗

Config returns the OAuth2 configurations.

()

Source from the content-addressed store, hash-verified

116
117// Config returns the OAuth2 configurations.
118func (client *OIDCClient) Config() *oauth2.Config {
119 client.mutex.RLock()
120 defer client.mutex.RUnlock()
121 return client.config
122}
123
124// SetConfig sets the ID Token verifier and token endpoint URLs on OIDCClient
125func (client *OIDCClient) SetConfig(verifier *oidc.IDTokenVerifier, endpoint oauth2.Endpoint) {

Callers 4

TestConcurrentSetConfigFunction · 0.80
handleOIDCCommonMethod · 0.80
handleOIDCCallbackMethod · 0.80
handleOIDCRefreshMethod · 0.80

Calls 2

RLockMethod · 0.80
RUnlockMethod · 0.80

Tested by 1

TestConcurrentSetConfigFunction · 0.64