Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Router ¶
type Router struct {
// contains filtered or unexported fields
}
Router is what registers the routes to handling the management of OAuth tokens, and applications. It implements the server.Router interface.
func (*Router) RegisterAPI ¶
RegisterAPI is a stub method to implement the server.Router interface.
func (*Router) RegisterUI ¶
func (r *Router) RegisterUI(mux *mux.Router, csrf func(http.Handler) http.Handler, gates ...web.Gate)
RegisterUI registers the UI routes for handling the OAuth web flow, managing OAuth apps, and personal access tokens. No CSRF protection is applied to the OAuth web flow routes.
Click to show internal directories.
Click to hide internal directories.