Prologin social auth backend
Project description
social-auth-backend-prologin
This is Prologin's python social auth backend.
How to use with django
- Add this line to your requirements.txt
social-auth-backend-prologin==0.1.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
)
- add these in your
urls.py
urlpatterns = [
...
path('sso/', include('social_django.urls', namespace='social'),
...
]
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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc25141a9dca691717685f1f326f86a5961a275c75638a171988591543b33290 |
|
MD5 | 20dcfc3693ba2582b14440d4c27b614a |
|
BLAKE2b-256 | f7becb829f9f21951a288dc2efd80cb5c3887bc408c0d042002223c35bef7375 |
Close
Hashes for social_auth_backend_prologin-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1c2874db755939ead7611eb59aacbb908bf4bf2e07c2ef038825b78a5b62021 |
|
MD5 | 88b69cc654fc0b0dcd08ea50989e5503 |
|
BLAKE2b-256 | 352588d6d1eebcb2b70d68ee68df4cf16164c68ee965fdacca340630d819281a |