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

Method getOIDCProvider

rest/oidc_api.go:289–296  ·  view source on GitHub ↗
(providerName string)

Source from the content-addressed store, hash-verified

287}
288
289func (h *handler) getOIDCProvider(providerName string) (*auth.OIDCProvider, error) {
290 provider, err := h.db.GetOIDCProvider(providerName)
291 if provider == nil || err != nil {
292 return nil, base.HTTPErrorf(
293 http.StatusBadRequest, "OpenID Connect not configured for database %v", h.db.Name)
294 }
295 return provider, nil
296}
297
298// Builds the OIDC callback based on the current request. Used during OIDC Client lazy initialization.
299// Need to pass providerName and isDefault for the requested provider to determine whether we need to append it to the callback URL or not.

Callers 3

handleOIDCCommonMethod · 0.95
handleOIDCCallbackMethod · 0.95
handleOIDCRefreshMethod · 0.95

Calls 2

HTTPErrorfFunction · 0.92
GetOIDCProviderMethod · 0.80

Tested by

no test coverage detected