Skip to content

Commit 972082f

Browse files
committed
update docs
1 parent 72e699c commit 972082f

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

docs/common/customsettings.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,8 @@ details and available hooks.
165165
Default: []
166166

167167
With an `AUTH_STRATEGY <#auth-strategy>`__ value of **LOCKED**, urls in
168-
this list will remain visible to unauthenticated users. You might add
169-
the homepage (‘/’), for example.
168+
this list will remain visible to unauthenticated users. You can also use wild cards to open an entire path.
169+
You might add the homepage (‘/’), for example, or anything with a path that looks like '/accounts/reset/*/'.
170170
171171
`TARGET_PERMISSIONS_ONLY <#target-permissions-only>`__
172172
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

tom_base/settings.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@
310310
# Define custom DataProcessor class
311311
# DATA_PROCESSOR_CLASS = 'mytom.custom_data_processor.CustomDataProcessor'
312312

313-
# Authentication strategy can either be LOCKED (required login for all views)
313+
# Authentication strategy can either be LOCKED (required login for all views, bypassed with OPEN_URLS)
314314
# or READ_ONLY (read only access to views)
315315
AUTH_STRATEGY = 'READ_ONLY'
316316

@@ -330,8 +330,8 @@
330330
"name", "type", "observations", "saved_data"
331331
]
332332

333-
# URLs that should be allowed access even with AUTH_STRATEGY = LOCKED
334-
# for example: OPEN_URLS = ['/', '/about']
333+
# URLs that should be allowed access even with AUTH_STRATEGY = LOCKED. Can use wildcards.
334+
# for example: OPEN_URLS = ['/', '/about', '/accounts/reset/*/']
335335
OPEN_URLS = []
336336

337337
HOOKS = {

tom_setup/templates/tom_setup/settings.tmpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ GENERAL_SEARCH_FUNCTIONS = {}
328328
# This list can be used to add custom target parameters to the output from the target selection tool
329329
SELECTION_EXTRA_FIELDS = []
330330

331-
# Authentication strategy can either be LOCKED (required login for all views)
331+
# Authentication strategy can either be LOCKED (required login for all views, bypassed with OPEN_URLS)
332332
# or READ_ONLY (read only access to views)
333333
AUTH_STRATEGY = 'READ_ONLY'
334334

@@ -348,8 +348,8 @@ TARGET_LIST_COLUMNS = [
348348
"name", "type", "observations", "saved_data"
349349
]
350350

351-
# URLs that should be allowed access even with AUTH_STRATEGY = LOCKED
352-
# for example: OPEN_URLS = ['/', '/about']
351+
# URLs that should be allowed access even with AUTH_STRATEGY = LOCKED. Can use wildcards.
352+
# for example: OPEN_URLS = ['/', '/about', '/accounts/reset/*/']
353353
OPEN_URLS = []
354354
355355
HOOKS = {

0 commit comments

Comments
 (0)