Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAuthNHandler ¶
Types ¶
type AuthNHandler ¶
type AuthNHandler struct { // contains filtered or unexported fields }
func (*AuthNHandler) GenValidAuthCookie ¶
func (h *AuthNHandler) GenValidAuthCookie(username string) (*http.Cookie, error)
Generates a valid auth cookie that can be used by clients, should only be used by users of the lib in their test functions
func (*AuthNHandler) JWTClaims ¶
func (h *AuthNHandler) JWTClaims(t *jwt.JSONWebToken, dest ...interface{}) (err error)
Next are the functions fo checking the callback
func (*AuthNHandler) ServeHTTP ¶
func (h *AuthNHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type OpenIDConfig ¶
Click to show internal directories.
Click to hide internal directories.