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
|
from scopes.storage.common import registerContainerClass
|
||||||
|
|
||||||
|
|
||||||
class Track(object):
|
class Track:
|
||||||
|
|
||||||
headFields = ['taskId', 'userName']
|
headFields = ['taskId', 'userName']
|
||||||
prefix = 'rec'
|
prefix = 'rec'
|
||||||
|
|
|
||||||
|
|
@ -243,7 +243,10 @@ def logout(context, request):
|
||||||
|
|
||||||
|
|
||||||
def startup():
|
def startup():
|
||||||
loadOidcProviderData()
|
try:
|
||||||
|
loadOidcProviderData()
|
||||||
|
except requests.exceptions.JSONDecodeError as e:
|
||||||
|
logger.error(f'oidc.loadOidcProviderData: {e} - OIDC provider not available!')
|
||||||
#app.Publication.registerBeforeTraversal(
|
#app.Publication.registerBeforeTraversal(
|
||||||
# lambda req: req.setPrincipal(authentication.authenticate(req))
|
# lambda req: req.setPrincipal(authentication.authenticate(req))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue