Permalink
Browse files

Merge pull request #1 from altereg0/patch-1

Fix error when receiving SREG data from provider
  • Loading branch information...
2 parents 14bda49 + 28a6649 commit 09154498206c9990f7d0eb17bd32dc498a68e282 @tomlikestorock committed Aug 25, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 pyramid_openid/view.py
View
@@ -162,7 +162,7 @@ def process_provider_response(context, request):
success_dict = {
'identity_url': info.identity_url,
'ax': {},
- 'sreg': []}
+ 'sreg': {}}
fr = ax.FetchResponse.fromSuccessResponse(info)
if fr is not None:
ax_required = get_ax_required_from_settings(settings)
@@ -180,7 +180,7 @@ def process_provider_response(context, request):
items = chain(sreg_required, sreg_optional)
for key in items:
try:
- success_dict['sreg'][key] = fr.get(value)
+ success_dict['sreg'][key] = fr.get(key)
except KeyError:
pass

0 comments on commit 0915449

Please sign in to comment.