Skip to content

Commit e74124d

Browse files
author
tailor
committed
[project @ Fixes for consumer example]
1 parent c9fd343 commit e74124d

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

‎examples/consumer.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,9 +225,11 @@ def doProcess(self):
225225
# us. Status is a code indicating the response type. info is
226226
# either None or a string containing more information about
227227
# the return type.
228-
info = oidconsumer.complete(self.query)
228+
url = 'http://'+self.headers.get('Host')+self.path
229+
info = oidconsumer.complete(self.query, url)
229230

230231
sreg_resp = None
232+
pape_resp = None
231233
css_class = 'error'
232234
if info.status == consumer.FAILURE and info.identity_url:
233235
# In the case of failure, if info is non-None, it is the

‎openid/ax.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ def __init__(self, update_url=None):
572572
# This takes an argument, when base getExtensionArgs
573573
# doesn't. That's by design. If you call it with the base
574574
# arguments, it'll work as expected.
575-
#
575+
# XXX Document what happens with the request set
576576
#pylint:disable-msg=W0221
577577
def getExtensionArgs(self, request=None):
578578
"""Serialize this object into arguments in the attribute

0 commit comments

Comments
 (0)