mirror of
https://github.com/oauth2-proxy/oauth2-proxy.git
synced 2026-10-19 07:45:00 +02:00
Create AppDirector for getting the application redirect URL
This commit is contained in:
@@ -52,3 +52,8 @@ func IsProxied(req *http.Request) bool {
|
||||
}
|
||||
return scope.ReverseProxy
|
||||
}
|
||||
|
||||
func IsForwardedRequest(req *http.Request) bool {
|
||||
return IsProxied(req) &&
|
||||
req.Host != GetRequestHost(req)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user