Hi Everyone,
I'm trying to troubleshoot a SSO issue and I want to confirm that a certain HTTP header is being received at the Liferay server to trigger auto login for a SiteMinder user.
I'd like to print the HTTP headers to the screen to confirm that SM_user is being sent as an HTTP_header.
I've tried embedding the following Javascript code in a portlet or adding it a page using the Javascript dialog in the portal "Manage Pages" interface (I am using Liferay 5.2.3). Here is the code:
1
2var req = new XMLHttpRequest();
3req.open('GET', document.location, false);
4req.send(null);
5var headers = req.getAllResponseHeaders().toLowerCase();
6alert(headers);
In either case (embedding the code in the portlet in or using the pages interface), the code displays only a portion of the HTTP headers (as far as I can tell). This is the result:
server: apache-coyote/1.1
liferay-portal: liferay portal standard edition 5.2.3 (augustine / build 5203 / may 20, 2009)
content-encoding: gzip
content-type: text/html;charset=utf-8
content-length: 5493
date: thu, 12 jul 2012 18:16:23 gmt
Is there a way to return the entire list of HTTP response headers? I'm wondering if somehow the response is getting "scoped"?
Many thanks,
Susan
Firmi prego dentro per inbandierare questo come inadeguato.