Skip to content

Commit

Permalink
Port PR #1046 by browniebroke
Browse files Browse the repository at this point in the history
  • Loading branch information
omab committed Dec 4, 2016
1 parent 239a7bf commit 027fe5c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 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
- Remove Facebook2OAuth2 and Facebook2AppOAuth2 backends (port from [#1046](https://github.com/omab/python-social-auth/pull/1046)
by browniebroke)
- 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)
Expand Down
12 changes: 0 additions & 12 deletions social_core/backends/facebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,15 +196,3 @@ def base64_url_decode(data):
if constant_time_compare(sig, expected_sig) and \
data['issued_at'] > (time.time() - 86400):
return data


class Facebook2OAuth2(FacebookOAuth2):
"""Facebook OAuth2 authentication backend using Facebook Open Graph 2.0"""
AUTHORIZATION_URL = 'https://www.facebook.com/v2.0/dialog/oauth'
ACCESS_TOKEN_URL = 'https://graph.facebook.com/v2.0/oauth/access_token'
REVOKE_TOKEN_URL = 'https://graph.facebook.com/v2.0/{uid}/permissions'
USER_DATA_URL = 'https://graph.facebook.com/v2.0/me'


class Facebook2AppOAuth2(Facebook2OAuth2, FacebookAppOAuth2):
pass

0 comments on commit 027fe5c

Please sign in to comment.