X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/2c3ba81e19fd6d84ab208ad90a48fd81e4780c29..dcacc3b4c2ba2f550806a2d22b183f6fac4f63ff:/forum_modules/facebookauth/authentication.py diff --git a/forum_modules/facebookauth/authentication.py b/forum_modules/facebookauth/authentication.py index 8562bad..b80c477 100644 --- a/forum_modules/facebookauth/authentication.py +++ b/forum_modules/facebookauth/authentication.py @@ -12,14 +12,8 @@ from django.utils.translation import ugettext as _ import settings -try: - from json import load as load_json -except Exception: - from django.utils.simplejson import JSONDecoder +from json import load as load_json - def load_json(json): - decoder = JSONDecoder() - return decoder.decode(json.read()) class FacebookAuthConsumer(AuthenticationConsumer): @@ -33,7 +27,7 @@ class FacebookAuthConsumer(AuthenticationConsumer): facebook_api_authentication_url = "https://graph.facebook.com/oauth/authorize?" + urlencode(args) return facebook_api_authentication_url - + def process_authentication_request(self, request): try: args = dict(client_id=settings.FB_API_KEY, redirect_uri="%s%s" % (django_settings.APP_URL, request.path))