Skip to main content

social-auth-backend-prologin

This is Prologin's python social auth backend.

How to use with django

  1. Add this line to your requirements.txt
social-auth-backend-prologin==0.1.3
  1. Add these in your settings.py
# add the app to installed apps

INSTALLED_APPS = [
    ...
    "social_django",
    ...
]

# if you are not sure what to put here, see with a prologin root
SOCIAL_AUTH_PROLOGIN_SCOPE = [
    "email",
    "profile",
    "contest",
    "security_clearance",
]

# same thing

SOCIAL_AUTH_PIPELINE = (
    "social_core.pipeline.social_auth.social_details",
    "social_core.pipeline.social_auth.social_uid",
    "social_core.pipeline.social_auth.auth_allowed",
    "social_core.pipeline.social_auth.social_user",
    "social_core.pipeline.user.get_username",
    "social_core.pipeline.user.create_user",
    "social_core.pipeline.social_auth.associate_user",
    "social_core.pipeline.social_auth.load_extra_data",
    "social_auth_backend_prologin.pipeline.save_all_claims_as_extra_data",
    "social_core.pipeline.user.user_details",
    "social_auth_backend_prologin.pipeline.apply_upstream_security_clearances",
)

# if you want OIDC-only authentication you may remove the django... line

AUTHENTICATION_BACKENDS = (
    "social_auth_backend_prologin.backend.ProloginOpenIdConnect",
    "django.contrib.auth.backends.ModelBackend",
)

# These one are secret credentials, please do not commit them
# (They are given by prologin roots)

SOCIAL_AUTH_PROLOGIN_KEY = (
    "CHANGE_ME"  # This is the client ID given by a Prologin Root
)

SOCIAL_AUTH_PROLOGIN_SECRET = (
    "CHANGE_ME"  # This is the client secret given by a Prologin Root
)
  1. add these in your urls.py

urlpatterns = [
    ...
    path('sso/', include('social_django.urls', namespace='social'),
    ...
]

Release files for social-auth-backend-prologin 0.1.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-backend-prologin 0.1.3
File Size Uploaded
social_auth_backend_prologin-0.1.3.tar.gz 3.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for social-auth-backend-prologin 0.1.3
File Interpreter ABI Platform
social_auth_backend_prologin-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 7.5 kB

Release files / social_auth_backend_prologin-0.1.3.tar.gz

Download URL social_auth_backend_prologin-0.1.3.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
5ff5546f68a5a31a62bf8cdb68e76c4a628febde2d460519f3de729558a795f4
BLAKE2b-256 checksum
How to use checksums
4607a63dccaf3ee7977ad0fef420a01ad7bedd1e93d43f42da007f9219491695
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/57.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.5

Release files / social_auth_backend_prologin-0.1.3-py3-none-any.whl

Download URL social_auth_backend_prologin-0.1.3-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8c2754aca60a5546b83c7d5e74df1df97a1fb160656d6c50a3b91b98cd245d81
BLAKE2b-256 checksum
How to use checksums
83522bcd5ac11ac3cc41ff256e720d257da5a56a4c46a9554d4d304142009ee9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/57.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.5

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

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