Getting the redis stuff configured correctly.

Signed-off-by: Cliff Hill <clifford.hill@gsa.gov>
This commit is contained in:
Cliff Hill
2024-10-15 10:44:03 -04:00
parent d0cda995cf
commit da6882774b
4 changed files with 17 additions and 15 deletions

View File

@@ -46,7 +46,8 @@ class InviteApiClient(NotifyAdminAPIClient):
# make and store the nonce
nonce = secrets.token_urlsafe()
redis_client.set(f"login-nonce-{state}", nonce) # save the nonce to redis.
redis_key = f"login-nonce-{state}"
redis_client.set(f"{redis_key}", nonce) # save the nonce to redis.
data["nonce"] = nonce # This is passed to api for the invite url.
resp = self.post(url=f"/service/{service_id}/invite", data=data)