Skip to main content

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 may 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']

And you may define SOCIAL_AUTH_RAGTAG_APPROVAL_PROMPT as force to force the approval screen to appear every time the user signs in.

SOCIAL_AUTH_RAGTAG_APPROVAL_PROMPT = 'force'

Metadata

Release files for social-auth-ragtag-id 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for social-auth-ragtag-id 1.0.3
File Size Uploaded
social_auth_ragtag_id-1.0.3.tar.gz 2.5 kB Details

Release files / social_auth_ragtag_id-1.0.3.tar.gz

Download URL social_auth_ragtag_id-1.0.3.tar.gz
Size 2.5 kB
Tags Source
SHA-256 checksum
How to use checksums
19c5ec716a1f74ed50fa2badca7d008a738057cf9a9065ab0886f0f2cfc08ca8
BLAKE2b-256 checksum
How to use checksums
0b1ad8167d8284b8b490147d0e9c7805800cf6fb45726d3a6cf5d1eb4641b46e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.5.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.6

Release history Release notifications | RSS feed

This release

1.0.3 This release

1 release file

1.0.1

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page