mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-15 17:17:02 +02:00
Fix missing .env file
This commit is contained in:
parent
f16d657c6a
commit
2f9e16194e
3 changed files with 13 additions and 9 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue