Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ikeasamoahansah/django-all-auth

A simple django social configuration project with Google and AppleID support
https://github.com/ikeasamoahansah/django-all-auth

django django-rest-framework

Last synced: about 2 months ago
JSON representation

A simple django social configuration project with Google and AppleID support

Awesome Lists containing this project

README

        

## Django Social OUATH Integration Backend

#### Setup

- set up a virtual environment
```
python3 -m virtualenv .venv
```
- Install requirements files
```
pip install -r requirements.txt
```

#### Oauth Google Setup

- Head over to api/api/settings.py
- In the settings.py file locate the ```SOCIAL_AUTH_GOOGLE_OAUTH2_KEY``` and ```SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET``` variables
- Head over to [Google API](https://console.cloud.google.com) to get your secret keys
- Replace your keys with that in the variables

#### Oauth for AppleID

- Head over to [Apple for Developers](https://developer.apple.com) to get your keys
- Replace your keys with that in the variables

#### Running the API
- Use the virtual environment
```
source .venv/bin/activate
```
- Migrate changes
```
python api/manage.py migrate
```
- Run the server
```
python api/manage.py runserver
```