This commit is contained in:
David Kennedy 2023-12-06 13:58:47 -05:00
parent 2e1ff849cf
commit 695b4199f3
No known key found for this signature in database
GPG key ID: 6528A5386E66B96B
4 changed files with 23 additions and 9 deletions

View file

@ -89,6 +89,7 @@ class Client(oic.Client):
"""Step 2: Construct a login URL at OP's domain and send the user to it."""
logger.debug("Creating the OpenID Connect authn request...")
state = rndstr(size=32)
logger.info(session["acr_value"])
try:
session["state"] = state
session["nonce"] = rndstr(size=32)
@ -100,7 +101,7 @@ class Client(oic.Client):
"state": session["state"],
"nonce": session["nonce"],
"redirect_uri": self.registration_response["redirect_uris"][0],
"acr_values": self.behaviour.get("acr_value"),
"acr_values": session["acr_value"] if session["acr_value"] else self.behaviour.get("acr_value"),
}
if extra_args is not None: