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

Function mockProvider

rest/oidc_api_test.go:461–469  ·  view source on GitHub ↗

mockProvider returns a new OIDCProvider.

(name string)

Source from the content-addressed store, hash-verified

459
460// mockProvider returns a new OIDCProvider.
461func mockProvider(name string) *auth.OIDCProvider {
462 return &auth.OIDCProvider{
463 Name: name,
464 ValidationKey: base.Ptr("qux"),
465 JWTConfigCommon: auth.JWTConfigCommon{
466 ClientID: base.Ptr("baz"),
467 },
468 }
469}
470
471// mockProviderWith returns an OIDCProvider with the given options applied.
472func mockProviderWith(name string, options ...mockProviderOption) *auth.OIDCProvider {

Calls 1

PtrFunction · 0.92

Tested by

no test coverage detected