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 -

Laravel mail error `Swift_TransportException in StreamBuffer.php line 269: Connection could not be established with host smtp.gmail.com [ #0]` -

c# SetCompatibleTextRenderingDefault must be called before the first -