summaryrefslogtreecommitdiff
path: root/django/archives/settings.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/archives/settings.py')
-rw-r--r--django/archives/settings.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/django/archives/settings.py b/django/archives/settings.py
index 4eed26c..24861a9 100644
--- a/django/archives/settings.py
+++ b/django/archives/settings.py
@@ -143,6 +143,9 @@ RESEND_RATE_LIMIT_SECONDS = 30
SEARCH_CLIENTS = ('127.0.0.1',)
API_CLIENTS = ('127.0.0.1',)
PUBLIC_ARCHIVES = False
+# pgauth configuration if using private archives
+PGAUTH_REDIRECT = "http://localhost:8000/account/auth/12/"
+PGAUTH_KEY = "encryption_key"
ALLOW_RESEND = False
PGWEB_ADDRESS = 'https://www.postgresql.org'
@@ -165,6 +168,10 @@ if ALLOW_RESEND or not PUBLIC_ARCHIVES:
'django.contrib.sessions',
] + INSTALLED_APPS
+ AUTHENTICATION_BACKENDS = (
+ 'archives.auth.AuthBackend',
+ )
+
if not PUBLIC_ARCHIVES:
from archives.util import validate_new_user
PGAUTH_CREATEUSER_CALLBACK = validate_new_user