Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Auth ¶
type Auth struct {
// contains filtered or unexported fields
}
Auth implements the authorization functions
func (*Auth) BasicAuthenticate ¶
BasicAuthenticate just checks that a user is logged in
func (*Auth) DoesUserIDMatch ¶
DoesUserIDMatch checks the id URL parameter and verifies that it matches the one stored in the session
type IDLocation ¶
type IDLocation uint
IDLocation represents the location of the ID to use for authentication
const ( // URLParam location looks for {id} in the URL URLParam IDLocation = iota // BodyParam location looks for user_id in the body BodyParam )
Click to show internal directories.
Click to hide internal directories.