Skip to content

Commit

Permalink
Fixed indenting
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjanousekGSA committed Nov 25, 2024
1 parent 8231b67 commit c768b09
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions app/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,15 +184,15 @@ def inject_initial_signin_url():

# make and store the state
state = generate_token(
str(request.remote_addr),
current_app.config["SECRET_KEY"],
current_app.config["DANGEROUS_SALT"],
str(request.remote_addr),
current_app.config["SECRET_KEY"],
current_app.config["DANGEROUS_SALT"],
)

state_key = f"login-state-{unquote(state)}"
redis_client.set(state_key, state, ex=ttl)

# make and store the nonce
# make and store the nonce
nonce = secrets.token_urlsafe()
nonce_key = f"login-nonce-{unquote(nonce)}"
redis_client.set(nonce_key, nonce, ex=ttl)
Expand All @@ -204,6 +204,7 @@ def inject_initial_signin_url():

return {'initial_signin_url': url}


notify_environment = os.environ["NOTIFY_ENVIRONMENT"]

application.config.from_object(configs[notify_environment])
Expand Down

0 comments on commit c768b09

Please sign in to comment.