Fix missing .env file

This commit is contained in:
Seamus Johnston 2022-09-23 09:21:26 -05:00
parent f16d657c6a
commit 2f9e16194e
No known key found for this signature in database
GPG key ID: 2F21225985069105
3 changed files with 13 additions and 9 deletions

View file

@ -15,10 +15,14 @@ from djangooidc import exceptions as o_e
logger = logging.getLogger(__name__)
# Initialize provider using pyOICD
OP = getattr(settings, "OIDC_ACTIVE_PROVIDER")
CLIENT = Client(OP)
logger.debug("client initialized %s" % CLIENT)
try:
# Initialize provider using pyOICD
OP = getattr(settings, "OIDC_ACTIVE_PROVIDER")
CLIENT = Client(OP)
logger.debug("client initialized %s" % CLIENT)
except Exception as err:
logger.warning(err)
logger.warning("Unable to configure OpenID Connect provider. Users cannot log in.")
def error_page(request, error):