Skip to content

Commit

Permalink
Remove rouge import
Browse files Browse the repository at this point in the history
  • Loading branch information
rcastley committed Oct 12, 2024
1 parent a65b4cf commit 71f0a96
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/accounts/userservice/userservice.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import os
import sys
import re
from turtle import pu

import bcrypt
import jwt
Expand Down Expand Up @@ -261,6 +260,10 @@ def login():
# Assuming the public key bit size has been set in app.config['PUBLIC_KEY_BIT_SIZE']
public_key_bit_size = app.config.get('PUBLIC_KEY_BIT_SIZE', None)
encode_span.set_attribute("public_key_bit_size", public_key_bit_size)
if public_key_bit_size > 512:
app.logger.error("Public key bit size is greater than 512 bits.")
else:
app.logger.info("Public key bit size equal to 512 bits.")

# Log the success of the JWT generation
jwt_span.set_attribute("jwt.success", True)
Expand Down

0 comments on commit 71f0a96

Please sign in to comment.