Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

jmeterdude's avatar

Redirection to a third party url which uses apache Auth Proxy.

I want to redirect from Laravel ( 5.x) to a Angular js based application. I want this Angularjs app to be part of my Laravel Web App.

I want the users to be able to redirect from laravel app to the external app, which I am hosting on another instance, without any authentication, after the user performs a set of activities like uploading file or submitting a form or clicking on a link.

The external app ( grafana.org) has its own authentication but I want to have Laravel take care of its authentication. The app does provide some auth proxy headers, but I am unable to understand where to place these headers, so that the app takes these headers and enables the session and allows the user to get redirected to its site. It allows headers like enabled = true header_name = X-WEBAUTH-USER header_property = username auto_sign_up = true

But, whenever I place them inside the redirect::to or redirect::away or return response->redirectTo, things dont work as expected.

I am kind of newbie, so my question could be confusing. Do let me know if i need to provide more info.

0 likes
0 replies

Please or to participate in this conversation.