mirror of
https://git.sr.ht/~sircmpwn/tokidoki
synced 2026-02-14 02:57:41 +01:00
Add a "null" auth backend
Not built by default, but can be added with `go build -tags nullauth`. Enabled by running tokidoki with `-auth.url null://`. Very useful for simpler debugging when you don't want manage test accounts with actual passwords.
This commit is contained in:
parent
ddc11d4c7b
commit
1d871b000a
3 changed files with 50 additions and 0 deletions
11
auth/null_stub.go
Normal file
11
auth/null_stub.go
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
//go:build !nullauth
|
||||
|
||||
package auth
|
||||
|
||||
import (
|
||||
"errors"
|
||||
)
|
||||
|
||||
func NewNull() (AuthProvider, error) {
|
||||
return nil, errors.New("NullAuth is disabled")
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue