TheFastOrg / Backend

Apache License 2.0
0 stars 0 forks source link

Fix OAuth authentication issue with drf_social_oauth2 #9

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, incorrect middleware setup, app whitelisting/validation issues, and potential CSRF validation problems.

The following changes were made to resolve the issue:

Summary of Changes

This PR aims to fix the OAuth authentication issue and ensure that users can properly authenticate and login using OAuth providers in the Django project.

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.