more work on social login

This commit is contained in:
Sam
2021-03-16 13:24:25 +00:00
parent 6dec6be283
commit b81f868cac
6 changed files with 85 additions and 7 deletions

View File

@@ -7,6 +7,7 @@ This README aims to document functionality of backend as well as required steps
- [First Steps](#first-steps)
- [Load location data](#load-location-data)
- [Load taxonomy data](#load-taxonomy-data)
- [Social Auth](#social-auth)
- [Company Endpoints](#company-endpoints)
- [Product Endpoints](#product-endpoints)
- [Core Endpoints](#core-endpoints)
@@ -61,6 +62,26 @@ This data serves as initial Tags
To load initial set of tags: `python manage.py addtaxonomy`
## Social Auth
Use your credentials from social media network to create acount and log in.
Backend must be registered with every service that we want to use it with.
During registration, provide a `Callback URL`, where the app can receive requests.
You are given `client key` and `client secret` tokens, used to validate login requests.
### Facebook
- Go to `developers.facebook.com/`
- click on `My Apps`
- On `Add a New App`, click on `Website`
- Click on `Create App ID`
- On the next screen click on `Skip Quick Start`
- grab the `App ID` and `App Secret`
- in `Settings / Basic`, click on the button `+ Add Platform` and add a website, and other info
## Company Endpoints
### CompanyViewSet