mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-02 16:30:17 +02:00
authorize: only redirect for HTML pages (#2264)
* authorize: only redirect for HTML pages * authorize: only redirect for HTML pages
This commit is contained in:
parent
513859665a
commit
9dc90d02d0
5 changed files with 74 additions and 2 deletions
|
@ -84,7 +84,7 @@ func (a *Authorize) Check(ctx context.Context, in *envoy_service_auth_v3.CheckRe
|
|||
return a.deniedResponse(ctx, in, http.StatusForbidden, http.StatusText(http.StatusForbidden), nil)
|
||||
}
|
||||
|
||||
return a.redirectResponse(ctx, in)
|
||||
return a.requireLoginResponse(ctx, in)
|
||||
}
|
||||
|
||||
func getForwardAuthURL(r *http.Request) *url.URL {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue