Pluggable authentication backend for python-social-auth, that allows authentication via WaveApps.
Currently only supports the Django strategy.
From pypi
$ pip install python-social-auth-waveapps
or clone from Github
$ git clone git@github.com:ashchristopher/python-social-auth-waveapps.git
$ cd python-social-auth-waveapps && sudo python setup.py install
python-social-auth
must be installed and configured first. Please visit the
python-social-auth documentation for instructions.
-
Add Waveapps backend to AUTHENTICATION_BACKENDS:
AUTHENTICATION_BACKENDS = ( 'social_auth_waveapps.backends.WaveAppsOauth2', ... 'django.contrib.auth.backends.ModelBackend', )
-
Add your Waveapps settings to your django
settings.py
file.SOCIAL_AUTH_WAVEAPPS_KEY = "..." SOCIAL_AUTH_WAVEAPPS_SECRET = "..." SOCIAL_AUTH_WAVEAPPS_DEFAULT_SCOPE = ['user.read', ]
- Adds the ability to refresh the access_token using the
refresh_token
method on the backend.
- Fixes install problem.
- Adds the
refresh_token
,expires_in
, andtoken_type
to theextra_data
the UserSocialAuth instance.
- Initial release