gracefully ignore OIDC startup errors
This commit is contained in:
parent
8c43b4b406
commit
f5efdb4a38
2 changed files with 5 additions and 2 deletions
|
|
@ -15,7 +15,7 @@ from sqlalchemy import and_
|
|||
from scopes.storage.common import registerContainerClass
|
||||
|
||||
|
||||
class Track(object):
|
||||
class Track:
|
||||
|
||||
headFields = ['taskId', 'userName']
|
||||
prefix = 'rec'
|
||||
|
|
|
|||
|
|
@ -243,7 +243,10 @@ def logout(context, request):
|
|||
|
||||
|
||||
def startup():
|
||||
try:
|
||||
loadOidcProviderData()
|
||||
except requests.exceptions.JSONDecodeError as e:
|
||||
logger.error(f'oidc.loadOidcProviderData: {e} - OIDC provider not available!')
|
||||
#app.Publication.registerBeforeTraversal(
|
||||
# lambda req: req.setPrincipal(authentication.authenticate(req))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue