Documentation
¶
Index ¶
- Constants
- type Basic
- func (b *Basic) Authenticate(uid, pwd string, cookie *http.Cookie) (*http.Cookie, error)
- func (b *Basic) Authenticated(cookie *http.Cookie) (string, string, *http.Cookie, error)
- func (b *Basic) Authorised(uid, role, path string) error
- func (b *Basic) Logout(cookie *http.Cookie)
- func (b *Basic) Preauthenticate() (*http.Cookie, error)
- func (b *Basic) Verify(uid, pwd string) error
- type IAuth
- type None
- func (n *None) Authenticate(uid, pwd string, cookie *http.Cookie) (*http.Cookie, error)
- func (n *None) Authenticated(cookie *http.Cookie) (string, string, *http.Cookie, error)
- func (n *None) Authorised(uid, role, path string) error
- func (n *None) Logout(cookie *http.Cookie)
- func (n *None) Preauthenticate() (*http.Cookie, error)
- func (n *None) Verify(uid, pwd string) error
Constants ¶
View Source
const ( LoginCookie = "uhppoted-httpd-login" SessionCookie = "uhppoted-httpd-session" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Basic ¶
func (*Basic) Authenticate ¶
NTS: the uhppoted-httpd-login cookie is a single use expiring cookie
intended to (eventually) support opaque login credentials
func (*Basic) Authenticated ¶
func (*Basic) Authorised ¶
type IAuth ¶
type IAuth interface {
Preauthenticate() (*http.Cookie, error)
Authenticate(uid, pwd string, cookie *http.Cookie) (*http.Cookie, error)
Authenticated(cookie *http.Cookie) (string, string, *http.Cookie, error)
Authorised(uid, role, path string) error
Logout(cookie *http.Cookie)
Verify(uid, pwd string) error
}
type None ¶
type None struct {
// contains filtered or unexported fields
}
func NewNoneAuthenticator ¶
func NewNoneAuthenticator() *None
func (*None) Authenticate ¶
func (*None) Authenticated ¶
func (*None) Authorised ¶
Click to show internal directories.
Click to hide internal directories.