MCPcopy
hub / github.com/oauth2-proxy/oauth2-proxy / prepareNoCacheMiddleware

Function prepareNoCacheMiddleware

oauthproxy.go:1103–1108  ·  view source on GitHub ↗
(next http.Handler)

Source from the content-addressed store, hash-verified

1101}
1102
1103func prepareNoCacheMiddleware(next http.Handler) http.Handler {
1104 return http.HandlerFunc(func(rw http.ResponseWriter, req *http.Request) {
1105 prepareNoCache(rw)
1106 next.ServeHTTP(rw, req)
1107 })
1108}
1109
1110// getOAuthRedirectURI returns the redirectURL that the upstream OAuth Provider will
1111// redirect clients to once authenticated.

Callers

nothing calls this directly

Calls 2

prepareNoCacheFunction · 0.85
ServeHTTPMethod · 0.45

Tested by

no test coverage detected