java - How to read webserver environment variables using Apache TomEE? -


i planning use shibboleth sso service provider in application, explained here. mentioned, after successful login, user information can

"read webserver environment, e.g. $_server['mail'] in php".

how accomplish in java tomee?

i using apache web server in combination tomcat, such servlet requests forwarded tomcat. possible access apache environment?

according documentation of mod_proxy_ajp:

environment variables names have prefix ajp_ forwarded origin server ajp request attributes (with ajp_ prefix removed name of key).

so assuming configure shibboleth sp decode saml attribute webserver environment variable "mail", in application code can value using

request.getattribute("ajp_mail") 

Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -