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

Method endpoint

auth/oidc.go:617–622  ·  view source on GitHub ↗

endpoint returns the OAuth2 auth and token endpoints for the given provider.

()

Source from the content-addressed store, hash-verified

615
616// endpoint returns the OAuth2 auth and token endpoints for the given provider.
617func (metadata *ProviderMetadata) endpoint() oauth2.Endpoint {
618 return oauth2.Endpoint{
619 AuthURL: metadata.AuthorizationEndpoint,
620 TokenURL: metadata.TokenEndpoint,
621 }
622}
623
624func (op *OIDCProvider) verifyToken(ctx context.Context, token string, callbackURLFunc OIDCCallbackURLFunc) (*Identity, error) {
625 // Get client for issuer

Callers 3

initOIDCClientMethod · 0.80
runDiscoverySyncMethod · 0.80
TestConcurrentSetConfigFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestConcurrentSetConfigFunction · 0.64