Passing & Accessing Attributes with Tomcat

Lewellyn, Jared jlewelly at bloomu.edu
Mon Mar 28 14:23:36 EDT 2016


Hello,

I am currently trying to figure out how to pass and access attributes between Apache and Tomcat for display to the user in a front-end Java application. I currently have Apache 2.4.6 and Tomcat 7.0.54.0 with proxy_ajp installed and configured. Apache acts as a reverse proxy for Tomcat and helps secure my web application. Although I can secure a web application without a problem I don't seem to be able to pass and echo attributes between the two in a Java web application.

I have been following the guide provided here without any luck:
https://wiki.surfnet.nl/display/surfconextdev/My+First+SP+-+Java

I have double checked that my application defaults are set like so to allow the passing of information via ajp_proxy:
<ApplicationDefaults entityID=https://MY FQDN/shibboleth<https://MY%20FQDN/shibboleth> REMOTE_USER="eppn persistent-id targeted-id" attributePrefix="AJP_">


Apache Tomcat Configuration:

ProxyPass /ShibTest ajp://localhost:8009/ShibTest

<Location /ShibTest>
  AuthType shibboleth
  ShibRequestSetting requireSession 1
  require valid-user
  ShibUseEnvironment On
</Location>

Although I am able to access the deployed application as defined here: https://wiki.surfnet.nl/display/surfconextdev/My+First+SP+-+Java and am correctly directed to my authentication portal, none of the SAML attributes (with the exception of the persistent-id) are passed and simply show "null"

Does anyone have any experience with passing variables between Apache and Tomcat and then displaying them in a Tomcat application? If so, can you point me in the right direction and suggest other things I might check?

Any help would be greatly appreciated!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20160328/3e6da2e3/attachment.html>


More information about the users mailing list