Skip to content

Commit

Permalink
Add defaults for cas_response names
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
mfraezz committed Aug 25, 2016
1 parent b0f9129 commit 442cf3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/auth/cas.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ def make_response_from_ticket(ticket, service_url):
user = {
'external_id_provider': external_credential['provider'],
'external_id': external_credential['id'],
'fullname': '{} {}'.format(cas_resp.attributes.get('given-names'), cas_resp.attributes.get('family-name')),
'fullname': '{} {}'.format(cas_resp.attributes.get('given-names', ''), cas_resp.attributes.get('family-name', '')),
'access_token': cas_resp.attributes['accessToken'],
}
return external_first_login_authenticate(
Expand Down

0 comments on commit 442cf3c

Please sign in to comment.