# Functions
NewBasicAuthHandler handles basic HTTP auth against the provided user resource.
NewContextWithUser stores user into context.
UserFromContext retrieves user from context.
# Structs
AuthResourceHook is a resource event handler that protect the resource from unauthorized users.