mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-20 11:29:25 +02:00
health check to /health, updated testing of /health, cleaned up extraneous debug logging
This commit is contained in:
parent
7b64929d60
commit
2a676260c6
6 changed files with 39 additions and 20 deletions
|
@ -16,7 +16,6 @@ from registrar.models import User
|
|||
logger = logging.getLogger(__name__)
|
||||
|
||||
try:
|
||||
logger.debug("oidc views initializing provider")
|
||||
# Initialize provider using pyOICD
|
||||
OP = getattr(settings, "OIDC_ACTIVE_PROVIDER")
|
||||
CLIENT = Client(OP)
|
||||
|
@ -56,7 +55,6 @@ def error_page(request, error):
|
|||
|
||||
def openid(request):
|
||||
"""Redirect the user to an authentication provider (OP)."""
|
||||
logger.debug("in openid")
|
||||
# If the session reset because of a server restart, attempt to login again
|
||||
request.session["acr_value"] = CLIENT.get_default_acr_value()
|
||||
|
||||
|
@ -70,7 +68,6 @@ def openid(request):
|
|||
|
||||
def login_callback(request):
|
||||
"""Analyze the token returned by the authentication provider (OP)."""
|
||||
logger.debug("in login_callback")
|
||||
try:
|
||||
query = parse_qs(request.GET.urlencode())
|
||||
userinfo = CLIENT.callback(query, request.session)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue