Skip to content

Commit a5d5600

Browse files
author
tailor
committed
[project @ Provide the user_setup_url in the SetupNeededResponse even in OpenID 2]
1 parent a2fc3d8 commit a5d5600

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎openid/consumer/consumer.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,8 @@ def _complete_setup_needed(self, message, endpoint, _):
634634
if not message.isOpenID2():
635635
return self._completeInvalid(message, endpoint, _)
636636

637-
return SetupNeededResponse(endpoint)
637+
user_setup_url = message.getArg(OPENID2_NS, 'user_setup_url')
638+
return SetupNeededResponse(endpoint, user_setup_url)
638639

639640
def _complete_id_res(self, message, endpoint, return_to):
640641
try:

0 commit comments

Comments
 (0)