I'm working on an web application which can authenticate users using two HTTP request headers fields: user and role.
Using the company's SSO service, I would like to achieve the following:
user --> SSO --> header(location: http://app, \
user : username, | --> application
role : rolename) /
Basically, I would like to redirect the user on application from the SSO page. The SSO page is a small PHP script which finds the correct username and role, and then perform calls to the header() function:
header('user: username');
header('role: rolename');
header('location: http://application/login');
The problem is that the fields user and role seems to be removed during the redirection (I'm using Chrome with the HTTP headers extension to monitor the process).
Also, when I'm setting the headers manually (using the modify headers Chrome extension), everything works fine. So I presume the web application is not the problem.
Last thing: I'm not the developer of the web application, which is a commercial product. So, there is no way for me to modify the application itself.
Thank you very much in advance for any help :)