mirror of
https://github.com/hanzo-fi/stack.git
synced 2026-10-30 20:34:43 +00:00
14 lines
208 B
Go
14 lines
208 B
Go
package auth
|
|
|
|
import "net/http"
|
|
|
|
type noAuth struct{}
|
|
|
|
func (a noAuth) Authenticate(w http.ResponseWriter, r *http.Request) (bool, error) {
|
|
return true, nil
|
|
}
|
|
|
|
func NewNoAuth() *noAuth {
|
|
return &noAuth{}
|
|
}
|