Skip to content

Application for getting, refreshing and storing OAuth access_tokens for Django standalone applications

License

Notifications You must be signed in to change notification settings

ramusus/django-oauth-tokens

Repository files navigation

Introduction

Application for getting, storing and refreshing OAuth access_tokens for Django standalone applications without user manipulations. Applications also can imitate authorized requests on behalf of user

Providers

Vkontakte

OAUTH_TOKENS_VKONTAKTE_CLIENT_ID = ''                               # application ID
OAUTH_TOKENS_VKONTAKTE_CLIENT_SECRET = ''                           # application secret key
OAUTH_TOKENS_VKONTAKTE_SCOPE = ['wall', 'friends']                  # application scope
OAUTH_TOKENS_VKONTAKTE_USERNAME = ''                                # user login
OAUTH_TOKENS_VKONTAKTE_PASSWORD = ''                                # user password
OAUTH_TOKENS_VKONTAKTE_PHONE_END = ''                               # last 4 digits of user mobile phone

Facebook

OAUTH_TOKENS_FACEBOOK_CLIENT_ID = ''                                # application ID
OAUTH_TOKENS_FACEBOOK_CLIENT_SECRET = ''                            # application secret key
OAUTH_TOKENS_FACEBOOK_SCOPE = ['offline_access']                    # application scope
OAUTH_TOKENS_FACEBOOK_USERNAME = ''                                 # user login
OAUTH_TOKENS_FACEBOOK_PASSWORD = ''                                 # user password

Settings

OAUTH_TOKENS_HISTORY = True # to keep in DB expired access tokens

Dependencies

  • django
  • requests
  • requests_oauthlib
  • django-taggit
  • beautifulsoup4

In order to test with quicktest.py, you also need:

  • mock
  • factory_boy

About

Application for getting, refreshing and storing OAuth access_tokens for Django standalone applications

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages