سؤال

I have set up OpenAm as authentication module for my python server. In front of my python server is Apache http server working as reverse proxy. OPenAM agent was installed on the Apache http server. Every call to the Apache http server was first redirected to OpenAm server for authentication, and OpenAm will forward some user attributes in http head to the Apache server after authentication. Using php code, I could easily dump contents from the header. So my question is: Is there any way I could retrieve these information from http head in my python server?

هل كانت مفيدة؟

المحلول

http://modpython.org/live/mod_python-3.3.1/doc-html/pyapi-mprequest-mem.html

headers_in

of course you have to configure the agent to inject the needed headers, see my reply on openam alias.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top