Merge pull request #443 from mawoka-myblock/frontend-dependency-update

This commit is contained in:
Marlon
2025-09-21 12:43:14 +02:00
committed by GitHub
164 changed files with 7848 additions and 5241 deletions
+3 -3
View File
@@ -79,9 +79,9 @@ def verify_webauthn(data, fidocredentialss: list[FidoCredentials], login_session
print("user_cred not in DB")
raise HTTPException(401)
credential.id = base64.urlsafe_b64encode(credential.raw_id).decode("utf-8").replace("=", "")
credential.response.client_data_json = base64.b64decode(credential.response.client_data_json + b"==")
credential.response.authenticator_data = base64.urlsafe_b64decode(credential.response.authenticator_data + b"==")
credential.response.signature = base64.urlsafe_b64decode(credential.response.signature + b"==")
credential.response.client_data_json = credential.response.client_data_json
credential.response.authenticator_data = credential.response.authenticator_data
credential.response.signature = credential.response.signature
try:
verify_authentication_response(
credential=credential,
+2 -2
View File
@@ -64,8 +64,8 @@ async def confirm_add_key_data(credential: RegistrationCredential, user: User =
raise HTTPException(401)
current_registration_challenge = base64.b64decode(redis_res)
credential.id = base64.urlsafe_b64encode(credential.raw_id).decode("utf-8").replace("=", "")
credential.response.client_data_json = base64.b64decode(credential.response.client_data_json + b"==")
credential.response.attestation_object = base64.urlsafe_b64decode(credential.response.attestation_object + b"==")
credential.response.client_data_json = credential.response.client_data_json
credential.response.attestation_object = credential.response.attestation_object
verification = verify_registration_response(
credential=credential,
expected_challenge=current_registration_challenge,
+1 -1
View File
@@ -59,7 +59,7 @@ class IpResponse(BaseModel):
@router.get("/ip-lookup/{ip}", response_model=IpResponse)
async def get_ip_data(ip: str, _: User = Depends(get_current_user)):
async with ClientSession() as session, session.get(f"http://ip-api.com/json/{ip}") as response:
data = await response.model_dump_json()
data = await response.json()
try:
return IpResponse(**data)
except ValidationError: