certauth.go
func (a *Auth) RouterHandler(h httprouter.Handle) httprouter.Handle {
	return httprouter.Handle(func(w http.ResponseWriter, r *http.Request, ps httprouter.Params) {
		// Let secure process the request. If it returns an error,
		// that indicates the request should not continue.
		if err := a.Process(w, r); err != nil {
			return
		}

		h(w, r, ps)
	})
}
func (a *Auth) RouterHandler(h httprouter.Handle) httprouter.Handle {
	return httprouter.Handle(func(w http.ResponseWriter, r *http.Request, ps httprouter.Params) {
		// Let secure process the request. If it returns an error,
		// that indicates the request should not continue.
		if err := a.Process(w, r); err != nil {
			return
		}

		h(w, r, ps)
	})
}
// RouterHandler implements the httprouter.Handle for integration with github.com/julienschmidt/httprouter