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

Function DefaultAuthenticatorOptions

auth/auth.go:102–109  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

100}
101
102func DefaultAuthenticatorOptions(ctx context.Context) AuthenticatorOptions {
103 return AuthenticatorOptions{
104 ClientPartitionWindow: base.DefaultClientPartitionWindow,
105 SessionCookieName: DefaultCookieName,
106 BcryptCost: DefaultBcryptCost,
107 LogCtx: ctx,
108 }
109}
110
111func (auth *Authenticator) GetPrincipal(name string, isUser bool) (Principal, error) {
112 if isUser {

Calls

no outgoing calls