summaryrefslogtreecommitdiff
path: root/module/consumer.cc
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2009-08-19 17:38:46 +0000
committerStef Walter <stef@memberwebs.com>2009-08-19 17:38:46 +0000
commit2ba9d4412caec104410637674b179820eced7f02 (patch)
tree46643528390b55b2dc60138eaa275b3f6f44983a /module/consumer.cc
parentc7c67be49fb2b7307900db7e3da4b460f5603ac6 (diff)
Support POST responses back from the provider
Diffstat (limited to 'module/consumer.cc')
-rw-r--r--module/consumer.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/module/consumer.cc b/module/consumer.cc
index cbdcfe3..c750771 100644
--- a/module/consumer.cc
+++ b/module/consumer.cc
@@ -570,7 +570,13 @@ sid_consumer_authenticate(sid_request_t *req, sid_storage_t *store,
assert (req);
- const char *qs = sid_request_qs (req);
+ const char *qs;
+
+ if (strcmp (sid_request_method (req), "POST") == 0)
+ qs = sid_request_form (req);
+ else
+ qs = sid_request_qs (req);
+
parse_query_string (qs, params);
filter_prefixed_params (params, openid, "openid.");