Skip to content

Commit aee84bb

Browse files
author
tailor
committed
[project @ clarify documentation for URL argument to Consumer.complete; call it current_url instead of return_to]
1 parent c7027ae commit aee84bb

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎openid/consumer/consumer.py‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -384,16 +384,16 @@ def beginWithoutDiscovery(self, service, anonymous=False):
384384

385385
return auth_req
386386

387-
def complete(self, query, return_to):
387+
def complete(self, query, current_url):
388388
"""Called to interpret the server's response to an OpenID
389389
request. It is called in step 4 of the flow described in the
390390
consumer overview.
391391
392392
@param query: A dictionary of the query parameters for this
393393
HTTP request.
394394
395-
@param return_to: The return URL used to invoke the
396-
application. Extract the URL from your application's web
395+
@param current_url: The URL used to invoke the application.
396+
Extract the URL from your application's web
397397
request framework and specify it here to have it checked
398398
against the openid.return_to value in the response. If
399399
the return_to URL check fails, the status of the
@@ -412,7 +412,7 @@ def complete(self, query, return_to):
412412
endpoint = self.session.get(self._token_key)
413413

414414
message = Message.fromPostArgs(query)
415-
response = self.consumer.complete(message, endpoint, return_to)
415+
response = self.consumer.complete(message, endpoint, current_url)
416416

417417
try:
418418
del self.session[self._token_key]

0 commit comments

Comments
 (0)