TheFastOrg / Backend

Apache License 2.0
0 stars 0 forks source link

Fix OAuth authentication issue with drf_social_oauth2 #8

Closed sweep-ai[bot] closed 1 year ago

sweep-ai[bot] commented 1 year ago

Description

This PR addresses the OAuth authentication issue with drf_social_oauth2 in the Django project. Users were unable to properly authenticate and login using OAuth providers like Facebook and Google. The issue was caused by invalid OAuth credentials, improper middleware setup, incorrect app whitelisting/validation, and potential CSRF validation issues.

Changes Made

Please review and test the changes to ensure proper OAuth authentication using drf_social_oauth2.

Fixes #6.


To checkout this PR branch, run the following command in your terminal:

git checkout sweep/fix-oauth-authentication

To get Sweep to edit this pull request, leave a comment below or in the code. Leaving a comment in the code will only modify the file but commenting below can change the entire PR.