Prologin social auth backend
Project description
social-auth-backend-prologin
This is Prologin's python social auth backend.
How to use with django
- Add these in your settings.py
# add the app to installed apps
INSTALLED_APPS = [
...
"social_django",
"social_auth_backend_prologin",
...
]
# 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.ProloginOIDCBackend",
"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
)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for social_auth_backend_prologin-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43f83d092a4ace0ecb00eb18793ded6d81e26156a8218a86154d3e58b90a24c4 |
|
MD5 | ff9747df6a5a3d9ccaa5d1335a1ac66a |
|
BLAKE2b-256 | a7d55821faa0849aa90fa56a40d8c85db0c29f311cfd7ceb5bc2086405cb2f50 |
Close
Hashes for social_auth_backend_prologin-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e18f0a66eeefe49dddf3798af424f4ea40f57691f29e02a81aa0ffbeb5dc6d4 |
|
MD5 | c969ce5b77c7c09f795e287d6afa2712 |
|
BLAKE2b-256 | 1892469005a04f4e2e8c13bba67da552395a4e3c8dd7c9dafe88f89000a8c992 |