Documentation ¶
Overview ¶
Package auth implements helpers for securing routes
Package auth implements helpers for securing routes
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CredentialsPath ¶
func CredentialsPath() string
CredentialsPath returns a canonical path to the credentials.json file
Types ¶
type RequireAdmin ¶
RequireAdmin is an http.Handler which wraps another handler, requiring users to be admins before accessing this handler.
func (RequireAdmin) ServeHTTP ¶
func (ra RequireAdmin) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.