Hello all,
I have custom authentication handler in CAS where I set headers post successful validation of user. This is my code snippet.
if(isValidUser(credentials.getUsername(), credentials.getPassword()))
{
HttpServletResponse httpResponse = (HttpServletResponse) ExternalContextHolder.getExternalContext().getNativeResponse();
httpResponse.addHeader("CAS-Username",credentials.getUsername());
httpResponse.addHeader("CAS-Status",status);
httpResponse.addHeader("CAS-LastLoginTime",lastlogin);
final String username = credentials.getUsername();
AuthenticationHandlerExecutionResult result = createHandlerResult(credentials, this.principalFactory.createPrincipal(username));
return result;
}
And I am using Mod_auth_cas CAS client. Now my problem is I am unable to receive the headers set in CAS.
My Mod_auth_cas config is:
cas.conf
LoadModule auth_cas_module modules/mod_auth_cas.so
CASCertificatePath /etc/pki/tls/certs/cas.com.crt
CASCookiePath /var/cache/mod_auth_cas/
CASSSOEnabled On
CASIdleTimeout 1500
CASAttributePrefix "CAS-"
ssl.conf
<Location />
AllowOverride
AuthType CAS
require valid-user
CASAuthNHeader user-info
</Location>
And in my index.php file I am printing all the headers received. The problem is I always only receive HTTP_USER_INFO :: cas.
I want to receive all the headers set in CAS. Am i missing something? Can someone help me in getting all the headers.
Thanks
Ramakrishna G