Skip to content

Commit

Permalink
Port PR #1028 by inlanger
Browse files Browse the repository at this point in the history
  • Loading branch information
omab committed Dec 4, 2016
1 parent 4954b11 commit 239a7bf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- Added Dockerfile to simplify the running of tests (`make docker-tox`)

### Changed
- change username, email and fullname keys (port from [#1028](https://github.com/omab/python-social-auth/pull/1028)
by inlanger)
- Moves fix convert username to string (port from [#1021](https://github.com/omab/python-social-auth/pull/1021)
by WarmongeR1)
- Fix auth_params for Stripe backend (port from [#1034](https://github.com/omab/python-social-auth/pull/1034)
Expand Down
6 changes: 3 additions & 3 deletions social_core/backends/khanacademy.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ class KhanAcademyOAuth1(BrowserBasedOAuth1):
def get_user_details(self, response):
"""Return user details from Khan Academy account"""
return {
'username': response.get('key_email'),
'email': response.get('key_email'),
'fullname': '',
'username': response.get('email'),
'email': response.get('email'),
'fullname': response.get('nickname'),
'first_name': '',
'last_name': '',
'user_id': response.get('user_id')
Expand Down
2 changes: 1 addition & 1 deletion social_core/tests/backends/test_khanacademy.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class KhanAcademyOAuth1Test(OAuth1Test):
'oauth_callback_confirmed': 'true'
})
user_data_body = json.dumps({
"key_email": "[email protected]",
"email": "[email protected]",
"user_id": "http://googleid.khanacademy.org/11111111111111",
})

Expand Down

0 comments on commit 239a7bf

Please sign in to comment.