Added authentication middleware
This commit is contained in:
11
contexts/keys.go
Normal file
11
contexts/keys.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package contexts
|
||||
|
||||
type contextKey string
|
||||
|
||||
func (c contextKey) String() string {
|
||||
return "projectreshoot context key " + string(c)
|
||||
}
|
||||
|
||||
var (
|
||||
contextKeyAuthorizedUser = contextKey("auth-user")
|
||||
)
|
||||
Reference in New Issue
Block a user