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

Function refreshProviderConfig

rest/oidc_api_test.go:957–962  ·  view source on GitHub ↗

refreshProviderConfig updates the issuer URL and sets the discovery endpoint in provider configuration.

(providers auth.OIDCProviderMap, issuer string)

Source from the content-addressed store, hash-verified

955// refreshProviderConfig updates the issuer URL and sets the discovery endpoint
956// in provider configuration.
957func refreshProviderConfig(providers auth.OIDCProviderMap, issuer string) {
958 for name, provider := range providers {
959 provider.Issuer = issuer + "/" + name
960 provider.DiscoveryURI = auth.GetStandardDiscoveryEndpoint(provider.Issuer)
961 }
962}
963
964// getCookie returns the specified cookie by name if it exists in the given
965// set of cookies and nil otherwise.

Calls 1

Tested by

no test coverage detected