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
Post a Comment