Documentation
¶
Index ¶
- func HandleError(w http.ResponseWriter, r *http.Request, err error)
- func MethodNotAllowed(w http.ResponseWriter, r *http.Request)
- func NotFound(w http.ResponseWriter, r *http.Request)
- type Handler
- func (h *Handler) GetOauth2V2Authorization(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetOauth2V2Jwks(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetOidcCallback(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetWellKnownOpenidConfiguration(w http.ResponseWriter, r *http.Request)
- func (h *Handler) PostOauth2V2Login(w http.ResponseWriter, r *http.Request)
- func (h *Handler) PostOauth2V2Token(w http.ResponseWriter, r *http.Request)
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleError ¶
func HandleError(w http.ResponseWriter, r *http.Request, err error)
HandleError is called when the router has trouble parsong paths.
func MethodNotAllowed ¶
func MethodNotAllowed(w http.ResponseWriter, r *http.Request)
MethodNotAllowed is called from the router when a method is not found for a path.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func New ¶
func New(client client.Client, authenticator *authorization.Authenticator, options *Options) (*Handler, error)
func (*Handler) GetOauth2V2Authorization ¶
func (h *Handler) GetOauth2V2Authorization(w http.ResponseWriter, r *http.Request)
func (*Handler) GetOauth2V2Jwks ¶
func (h *Handler) GetOauth2V2Jwks(w http.ResponseWriter, r *http.Request)
func (*Handler) GetOidcCallback ¶
func (h *Handler) GetOidcCallback(w http.ResponseWriter, r *http.Request)
func (*Handler) GetWellKnownOpenidConfiguration ¶
func (h *Handler) GetWellKnownOpenidConfiguration(w http.ResponseWriter, r *http.Request)
func (*Handler) PostOauth2V2Login ¶
func (h *Handler) PostOauth2V2Login(w http.ResponseWriter, r *http.Request)
func (*Handler) PostOauth2V2Token ¶
func (h *Handler) PostOauth2V2Token(w http.ResponseWriter, r *http.Request)
type Options ¶
type Options struct { // Host is the hostname of the service, this will be used as the oauth2 // issuer etc. Host string // cacheMaxAge defines the max age for cachable items e.g. images and // flavors don't change all that often. CacheMaxAge time.Duration }
Options defines configurable handler options.
Click to show internal directories.
Click to hide internal directories.