diff options
Diffstat (limited to 'server/auth.go')
-rw-r--r-- | server/auth.go | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/server/auth.go b/server/auth.go deleted file mode 100644 index 15ea164..0000000 --- a/server/auth.go +++ /dev/null @@ -1,15 +0,0 @@ -package main - -import ( - "net/http" -) - -// An Authenticator takes an HTTP request and returns true iff it is allowed to -// use our service. -type Authenticator func(req *http.Request) bool - -func TokenAuthenticator() Authenticator { - return func(req *http.Request) bool { - return req.Header.Get("authorization") == "magic" - } -} |