Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AMType ¶
type AMType string
const (
GAEAMType AMType = "GCP"
)
const HTTPBasicAMType AMType = "http-basic"
const UnixAMType AMType = "unix"
type Config ¶
type Config struct { Type AMType OAuth2 appOAuth2.OAuth2Config }
type GAEUsersAccountManager ¶
type GAEUsersAccountManager struct{}
func NewGAEUsersAccountManager ¶
func NewGAEUsersAccountManager() *GAEUsersAccountManager
func (*GAEUsersAccountManager) UserFromRequest ¶
func (g *GAEUsersAccountManager) UserFromRequest(r *http.Request) (User, error)
type HTTPBasicAccountManager ¶
type HTTPBasicAccountManager struct{}
Implements the AccountManager interfaces using the RFC 2617 HTTP Basic Authentication, where the user-ID and password are provided in the HTTP request header.
func NewHTTPBasicAccountManager ¶
func NewHTTPBasicAccountManager() *HTTPBasicAccountManager
func (*HTTPBasicAccountManager) UserFromRequest ¶
func (m *HTTPBasicAccountManager) UserFromRequest(r *http.Request) (User, error)
type HTTPBasicUser ¶
type HTTPBasicUser struct {
// contains filtered or unexported fields
}
func (*HTTPBasicUser) Email ¶
func (u *HTTPBasicUser) Email() string
func (*HTTPBasicUser) Username ¶
func (u *HTTPBasicUser) Username() string
type UnixAccountManager ¶
type UnixAccountManager struct {
// contains filtered or unexported fields
}
Implements the Manager interface taking the username from the environment and authorizing all requests
func NewUnixAccountManager ¶
func NewUnixAccountManager() *UnixAccountManager
func (*UnixAccountManager) UserFromRequest ¶
func (m *UnixAccountManager) UserFromRequest(r *http.Request) (User, error)
Click to show internal directories.
Click to hide internal directories.