Create UserSocialAuth of social_django with OAuth login with twitter-kit-ios.
3.4, 3.5, 3.6
2.0.x
$ pip install twitter-oauth-ios-django
Add twitter_oauth_ios
into INSTALLED_APPS
in your settings.py
file
INSTALLED_APPS = [
...,
'social_django',
'twitter_oauth_ios',
]
Add twitter_oauth_ios
routing in urls.py
file
from django.urls import include, path
urlpatterns = [
...,
path('twitter_oauth/', include('twitter_oauth_ios.urls', namespace='twitter_oauth_ios')),
]
$ curl -X PUT http://example.com/twitter_oauth/ \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d \
"{
'user_id': 1111111111,
'oauth_token': '1111111111-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
'oauth_token_secret': 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
'screen_name': 'sample_screen_name',
'display_name': 'display_name'
}",
- Django
- social-auth-app-django
nnsnodnb
Copyright (c) 2018 Yuya Oka Released under the MIT license (see LICENSE)