diff options
author | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2010-06-27 00:47:05 +0000 |
---|---|---|
committer | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2010-06-27 00:47:05 +0000 |
commit | d7cc8057a36fb87292568989adb19c354b26a181 (patch) | |
tree | 3b6e3b62dffa921575f54ef10ef2a0d1bcebfc72 /sca-cpp/trunk/modules/http/httpd.hpp | |
parent | dde314a44064dd8ddc63375078dacbaebbdd9a3f (diff) |
Add support for user and email component properties, and minimal support for sign in using OpenID.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@958305 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-cpp/trunk/modules/http/httpd.hpp')
-rw-r--r-- | sca-cpp/trunk/modules/http/httpd.hpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/sca-cpp/trunk/modules/http/httpd.hpp b/sca-cpp/trunk/modules/http/httpd.hpp index dfc3dcc47e..93137be4e2 100644 --- a/sca-cpp/trunk/modules/http/httpd.hpp +++ b/sca-cpp/trunk/modules/http/httpd.hpp @@ -97,8 +97,19 @@ int debugHeader(unused void* r, const char* key, const char* value) { return 1; } +int debugEnv(unused void* r, const char* key, const char* value) { + cerr << " var key: " << key << ", value: " << value << endl; + return 1; +} + +int debugNote(unused void* r, const char* key, const char* value) { + cerr << " note key: " << key << ", value: " << value << endl; + return 1; +} + const bool debugRequest(request_rec* r, const string& msg) { cerr << msg << ":" << endl; + cerr << " server: " << optional(r->server->server_hostname) << endl; cerr << " protocol: " << optional(r->protocol) << endl; cerr << " method: " << optional(r->method) << endl; cerr << " method number: " << r->method_number << endl; @@ -111,6 +122,10 @@ const bool debugRequest(request_rec* r, const string& msg) { cerr << " filename: " << optional(r->filename) << endl; cerr << " uri tokens: " << pathTokens(r->uri) << endl; cerr << " args: " << optional(r->args) << endl; + cerr << " user: " << optional(r->user) << endl; + cerr << " auth type: " << optional(r->ap_auth_type) << endl; + apr_table_do(debugEnv, r, r->subprocess_env, NULL); + apr_table_do(debugEnv, r, r->notes, NULL); return true; } @@ -331,6 +346,7 @@ const failable<request_rec*, int> internalRedirectRequest(const string& nr_uri, nr->no_local_copy = r->no_local_copy; nr->read_length = r->read_length; nr->vlist_validator = r->vlist_validator; + nr->user = r->user; // Setup input and output filters nr->proto_output_filters = r->proto_output_filters; |