Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Authenticate ¶
func Authenticate(req *http.Request, id, role string, creds jwt.Credentials)
func Test401and403 ¶
Types ¶
type Authenticator ¶
type Authenticator struct {
// contains filtered or unexported fields
}
func NewAuthenticator ¶
func NewAuthenticator(creds jwt.Credentials) Authenticator
func (Authenticator) Authenticate ¶
func (a Authenticator) Authenticate(req *http.Request, id, role string)
Click to show internal directories.
Click to hide internal directories.