From ba2b3303bbed866103dbf4f57be1b9adaf206137 Mon Sep 17 00:00:00 2001 From: Anatoly Date: Thu, 7 Nov 2019 10:14:48 +0300 Subject: [PATCH] delete unused attributes (social auth) --- apps/authorization/views/common.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/apps/authorization/views/common.py b/apps/authorization/views/common.py index e3a5a3cb..9d2069f2 100644 --- a/apps/authorization/views/common.py +++ b/apps/authorization/views/common.py @@ -1,6 +1,4 @@ """Common views for application Account""" -import hashlib -import hmac import json from braces.views import CsrfExemptMixin @@ -59,16 +57,12 @@ class OAuth2ViewMixin(CsrfExemptMixin, OAuthLibMixin, BaseOAuth2ViewMixin): client_id = credentials.get('client_id') client_secret = credentials.get('client_secret') token = validated_data.get('token') - appsecret_proof = hmac.new(settings.SOCIAL_AUTH_FACEBOOK_KEY.encode('utf-8'), - msg=settings.SOCIAL_AUTH_FACEBOOK_SECRET.encode('utf-8'), - digestmod=hashlib.sha256).hexdigest() if client_id and client_secret and token: return { 'client_id': client_id, 'client_secret': client_secret, 'token': token, - 'appsecret_proof': appsecret_proof, } else: raise utils_exceptions.ServiceError(data={