oathkeeper: github.com/ory/oathkeeper/proxy Index | Files

package proxy

import "github.com/ory/oathkeeper/proxy"


Package Files

proxy.go request_handler.go response_writer.go


const (
    ContextKeyMatchedRule key

func ConfigureBackendURL Uses

func ConfigureBackendURL(r *http.Request, rl *rule.Rule) error

func EnrichRequestedURL Uses

func EnrichRequestedURL(r *http.Request)

EnrichRequestedURL sets Scheme and Host values in a URL passed down by a http server. Per default, the URL does not contain host nor scheme values.

func NewSimpleResponseWriter Uses

func NewSimpleResponseWriter() *simpleResponseWriter

type Proxy Uses

type Proxy struct {
    // contains filtered or unexported fields

func NewProxy Uses

func NewProxy(r proxyRegistry) *Proxy

func (*Proxy) Director Uses

func (d *Proxy) Director(r *http.Request)

func (*Proxy) RoundTrip Uses

func (d *Proxy) RoundTrip(r *http.Request) (*http.Response, error)

type RequestHandler Uses

type RequestHandler struct {
    // contains filtered or unexported fields

func NewRequestHandler Uses

func NewRequestHandler(r requestHandlerRegistry, c configuration.Provider) *RequestHandler

func (*RequestHandler) HandleError Uses

func (d *RequestHandler) HandleError(w http.ResponseWriter, r *http.Request, rl *rule.Rule, handleErr error)

func (*RequestHandler) HandleRequest Uses

func (d *RequestHandler) HandleRequest(r *http.Request, rl *rule.Rule) (session *authn.AuthenticationSession, err error)

func (*RequestHandler) InitializeAuthnSession Uses

func (d *RequestHandler) InitializeAuthnSession(r *http.Request, rl *rule.Rule) *authn.AuthenticationSession

InitializeAuthnSession reates an authentication session and initializes it with a Match context if possible

Package proxy imports 18 packages (graph) and is imported by 2 packages. Updated 2020-03-28. Refresh now. Tools for package owners.