(req *http.Request)
| 616 | } |
| 617 | |
| 618 | func (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. |
| 628 | func (p *OAuthProxy) isTrustedIP(req *http.Request) bool { |