Configuring Social Authentication in Django Admin
- Login to Django Admin as a superuser.
- Navigate to Social Accounts app.
- Open the Social Application model.
- Configure the application with the following details:
| Field |
Value |
| Provider |
Facebook |
| Client ID |
<your_client_id> |
| Secret Key |
<your_secret_key> |
| Sites |
example.com |
- Click Add to save the configuration.
Then Navigate to Core app.
- Open the Social login setting model.
- Configure the application with the following details:
| Field |
Value |
| name |
Facebook |
| redirect uri |
https://api.example.com/auth/facebook/callback/ |
- Click Add to save the configuration.
- Login to Django Admin as a superuser.
- Navigate to Social Accounts app.
- Open the Social Application model.
- Configure the application with the following details:
| Field |
Value |
| Provider |
Google |
| Client ID |
<your_client_id> |
| Secret Key |
<your_secret_key> |
| Sites |
example.com |
- Click Add to save the configuration.
Then Navigate to Core app.
- Open the Social login setting model.
- Configure the application with the following details:
| Field |
Value |
| name |
Google |
| redirect uri |
https://api.example.com/auth/google/callback/ |
- Click Add to save the configuration.