We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 584c5c8 commit b09ac1cCopy full SHA for b09ac1c
django/archives/settings.py
@@ -143,6 +143,9 @@
143
SEARCH_CLIENTS = ('127.0.0.1',)
144
API_CLIENTS = ('127.0.0.1',)
145
PUBLIC_ARCHIVES = False
146
+# pgauth configuration if using private archives
147
+PGAUTH_REDIRECT = "http://localhost:8000/account/auth/12/"
148
+PGAUTH_KEY = "encryption_key"
149
ALLOW_RESEND = False
150
151
PGWEB_ADDRESS = 'https://www.postgresql.org'
@@ -165,6 +168,10 @@
165
168
'django.contrib.sessions',
166
169
] + INSTALLED_APPS
167
170
171
+ AUTHENTICATION_BACKENDS = (
172
+ 'archives.auth.AuthBackend',
173
+ )
174
+
175
if not PUBLIC_ARCHIVES:
176
from archives.util import validate_new_user
177
PGAUTH_CREATEUSER_CALLBACK = validate_new_user
0 commit comments