WithLocalManagementPassword configures a password that is only accepted from localhost management requests.
(password string)
| 162 | |
| 163 | // WithLocalManagementPassword configures a password that is only accepted from localhost management requests. |
| 164 | func (b *Builder) WithLocalManagementPassword(password string) *Builder { |
| 165 | if password == "" { |
| 166 | return b |
| 167 | } |
| 168 | b.serverOptions = append(b.serverOptions, api.WithLocalManagementPassword(password)) |
| 169 | return b |
| 170 | } |
| 171 | |
| 172 | // WithPostAuthHook registers a hook to be called after an Auth record is created |
| 173 | // but before it is persisted to storage. |
no test coverage detected