Skip to content

Commit 13bb3ca

Browse files
committed
fix: add extauthz to friendly error messages
1 parent 81cb695 commit 13bb3ca

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/controller/proxy_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ func (controller *ProxyController) getHeader(c *gin.Context, header string) (str
315315
}
316316

317317
func (controller *ProxyController) useFriendlyError(proxyCtx ProxyContext) bool {
318-
return proxyCtx.Type == ForwardAuth && proxyCtx.IsBrowser
318+
return (proxyCtx.Type == ForwardAuth || proxyCtx.Type == ExtAuthz) && proxyCtx.IsBrowser
319319
}
320320

321321
// Code below is inspired from https://github.com/authelia/authelia/blob/master/internal/handlers/handler_authz.go

0 commit comments

Comments
 (0)