-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/pvfarooq/tfora_social_auth …
…into main
- Loading branch information
Showing
1 changed file
with
40 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,42 @@ | ||
# tfora_social_auth | ||
|
||
`https://github.com/pvfarooq/tfora_social_auth#readme` | ||
##### Easy django rest auth integration for social applications. (currently supports Google and Facebook) | ||
|
||
### Installation | ||
|
||
`pip install tfora-social-auth | ||
` | ||
###### INSTALLED_APPS = [ | ||
|
||
|
||
` 'tfora_social_auth' | ||
` | ||
|
||
###### ] | ||
|
||
`python manage.py migrate` | ||
|
||
###### in urls | ||
|
||
`from tfora_social_auth.views import ( | ||
GoogleSocialAuthView, | ||
FacebookSocialAuthView | ||
)` | ||
|
||
`path('social/google/', GoogleSocialAuthView.as_view()), | ||
` | ||
|
||
`path('social/facebook/', FacebookSocialAuthView.as_view()), | ||
` | ||
|
||
### For Google login | ||
|
||
###### POST with "auth_token". | ||
|
||
###### Send an "idtoken" as from google to get user information | ||
|
||
### For Facebook login | ||
|
||
###### POST with "auth_token". | ||
|
||
###### Send an access token as from facebook to get user information |