Skip to main content

An OAuth2 backend for social-auth-core

Project description

python-social-auth-ragtag-id

An OAuth2 backend for python social auth.

Installation

pipenv install social_auth_ragtag_id

Django Configuration

First, follow the instructions at http://python-social-auth.readthedocs.io/en/latest/configuration/django.html.

Then, add this backed to AUTHENTICATION_BACKENDS:

AUTHENTICATION_BACKENDS = (
  ...
  'social_auth_ragtag_id.backends.RagtagOAuth2',
  ...
  'django.contrib.auth.backends.ModelBackend',
)

Finally, add the client ID and secret:

SOCIAL_AUTH_RAGTAG_KEY = 'xxxxxxxxxxx'
SOCIAL_AUTH_RAGTAG_SECRET = 'xxxxxxxxxxx'

These can be obtained from a member of Ragtag staff.

Assuming the default URL setup from social_core, you can now login at /login/ragtag/.

Optionally you can define SOCIAL_AUTH_RAGTAG_SCOPES to limit which data your app needs access to. Available scopes can be seen at https://id.ragtag.org/api/scopes/. For example:

SOCIAL_AUTH_RAGTAG_SCOPES = ['identity', 'email']

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

social_auth_ragtag_id-1.0.1.tar.gz (2.3 kB view details)

Uploaded Source

File details

Details for the file social_auth_ragtag_id-1.0.1.tar.gz.

File metadata

File hashes

Hashes for social_auth_ragtag_id-1.0.1.tar.gz
Algorithm Hash digest
SHA256 755706c4d70e3d1d3bfec2050d76cdb3bdd9d1ba1592970d29d5b3fff14b9fb6
MD5 d04193d6184522e8ce1052c5c40e5292
BLAKE2b-256 ef3848f3cc964c68a653368800c8a766bf2a3e1e51e3e70076e67e477b2b5b2f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page