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