diff options
author | Stef Walter <stef@memberwebs.com> | 2009-08-19 17:38:46 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2009-08-19 17:38:46 +0000 |
commit | 2ba9d4412caec104410637674b179820eced7f02 (patch) | |
tree | 46643528390b55b2dc60138eaa275b3f6f44983a /module/consumer.cc | |
parent | c7c67be49fb2b7307900db7e3da4b460f5603ac6 (diff) |
Support POST responses back from the provider
Diffstat (limited to 'module/consumer.cc')
-rw-r--r-- | module/consumer.cc | 8 |
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."); |