Skip to content

Commit bb17886

Browse files
committed
fix facebook login
1 parent 31d4b54 commit bb17886

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

elastic_framework/contrib/auth/views.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ def post(self, request, *args, **kwargs):
7272
if request.DATA.get('_embedded', {}).get('facebookAuth'):
7373
self.authentication_type = 'facebook'
7474
facebook_signup_data, msg = facebook_authentication(
75-
request.DATA['_embedded']['facebookAuth']
75+
request.DATA['_embedded']['facebookAuth']['accessToken'],
76+
request.DATA['_embedded']['facebookAuth']['userId']
7677
)
7778
if not facebook_signup_data:
7879
raise APIError(status_code=400,

0 commit comments

Comments
 (0)