mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-15 17:17:02 +02:00
added a debug message when client needs to be re-initialized
This commit is contained in:
parent
1896bf5380
commit
69f6f4db0c
1 changed files with 2 additions and 0 deletions
|
@ -78,6 +78,7 @@ def openid(request):
|
||||||
try:
|
try:
|
||||||
# If the CLIENT is none, attempt to reinitialize before handling the request
|
# If the CLIENT is none, attempt to reinitialize before handling the request
|
||||||
if _client_is_none():
|
if _client_is_none():
|
||||||
|
logger.debug("OIDC client is None, attempting to initialize")
|
||||||
_initialize_client()
|
_initialize_client()
|
||||||
request.session["acr_value"] = CLIENT.get_default_acr_value()
|
request.session["acr_value"] = CLIENT.get_default_acr_value()
|
||||||
request.session["next"] = request.GET.get("next", "/")
|
request.session["next"] = request.GET.get("next", "/")
|
||||||
|
@ -93,6 +94,7 @@ def login_callback(request):
|
||||||
try:
|
try:
|
||||||
# If the CLIENT is none, attempt to reinitialize before handling the request
|
# If the CLIENT is none, attempt to reinitialize before handling the request
|
||||||
if _client_is_none():
|
if _client_is_none():
|
||||||
|
logger.debug("OIDC client is None, attempting to initialize")
|
||||||
_initialize_client()
|
_initialize_client()
|
||||||
query = parse_qs(request.GET.urlencode())
|
query = parse_qs(request.GET.urlencode())
|
||||||
userinfo = CLIENT.callback(query, request.session)
|
userinfo = CLIENT.callback(query, request.session)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue