Skip to content

Commit

Permalink
Merge pull request #783 from matburt/master
Browse files Browse the repository at this point in the history
Formatter fixes for SAML to support Py2.6
  • Loading branch information
omab committed Dec 17, 2015
2 parents b51d824 + fcd11bf commit 43b72de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions social/backends/saml.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ def get_user_id(self, details, response):
"""
idp = self.get_idp(response['idp_name'])
uid = idp.get_user_permanent_id(response['attributes'])
return '{}:{}'.format(idp.name, uid)
return '{0}:{1}'.format(idp.name, uid)

def auth_complete(self, *args, **kwargs):
"""
Expand All @@ -293,7 +293,7 @@ def auth_complete(self, *args, **kwargs):
if errors or not auth.is_authenticated():
reason = auth.get_last_error_reason()
raise AuthFailed(
self, 'SAML login failed: {} ({})'.format(errors, reason)
self, 'SAML login failed: {0} ({1})'.format(errors, reason)
)

attributes = auth.get_attributes()
Expand Down

0 comments on commit 43b72de

Please sign in to comment.