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

Method isAPIPath

oauthproxy.go:618–625  ·  view source on GitHub ↗
(req *http.Request)

Source from the content-addressed store, hash-verified

616}
617
618func (p *OAuthProxy) isAPIPath(req *http.Request) bool {
619 for _, route := range p.apiRoutes {
620 if route.pathRegex.MatchString(requestutil.GetRequestURI(req)) {
621 return true
622 }
623 }
624 return false
625}
626
627// isTrustedIP is used to check if a request comes from a trusted client IP address.
628func (p *OAuthProxy) isTrustedIP(req *http.Request) bool {

Callers 1

ProxyMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected