black, isort, and flake8.

Signed-off-by: Cliff Hill <clifford.hill@gsa.gov>
This commit is contained in:
Cliff Hill
2024-10-15 16:55:25 -04:00
parent 8c40538334
commit 7275dac6a0
2 changed files with 0 additions and 10 deletions

View File

@@ -3,8 +3,6 @@ import json
import secrets
from urllib.parse import unquote
from flask import current_app, request
from app import redis_client
from app.notify_client import NotifyAdminAPIClient, _attach_current_user, cache
from app.utils.user_permissions import (
@@ -41,12 +39,6 @@ class InviteApiClient(NotifyAdminAPIClient):
}
data = _attach_current_user(data)
# make the state variable to properly store the nonce.
# this matches the api code in app.service_invite.rest.get_user_data_url_safe()
state_data = json.dumps(data)
state_data = base64.b64encode(state_data.encode("utf8"))
state = state_data.decode("utf8")
# make and store the nonce
nonce = secrets.token_urlsafe()
redis_key = f"login-nonce-{unquote(nonce)}"