From efda4b4ef7c33748a358651277315ad3a3b97f70 Mon Sep 17 00:00:00 2001 From: Tinashe Date: Tue, 19 Nov 2024 10:08:56 -0500 Subject: [PATCH] remove LICENCE,VERSION and devel prints --- confluent_server/confluent/webauthn.py | 8 +------- confluent_server/confluent_server.spec.tmpl | 2 +- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/confluent_server/confluent/webauthn.py b/confluent_server/confluent/webauthn.py index 99e652c0..509a7584 100644 --- a/confluent_server/confluent/webauthn.py +++ b/confluent_server/confluent/webauthn.py @@ -254,11 +254,6 @@ def authentication_response(request, username, APP_RELYING_PARTY, APP_ORIGIN): credential_model = User.get_credential(credential_id=None, username=username) if not credential_model: raise Exception("No credential for user") - - try: - print(request) - except Exception: - raise Exception("Could not parse input data") verification = verify_authentication_response( credential=request, @@ -270,7 +265,7 @@ def authentication_response(request, username, APP_RELYING_PARTY, APP_ORIGIN): require_user_verification = True ) - print(verification) + return {"verified": True} class RpEntity(object): @@ -341,7 +336,6 @@ def handle_api_request(url, env, start_response, username, cfm, headers, reqbody username = username.encode('utf8') rsp = registration_response(req, username, APP_RELYING_PARTY, APP_ORIGIN) if rsp.get('verified', False): - print('worked out') start_response('200 OK', headers) yield json.dumps({'status': 'Success'}) diff --git a/confluent_server/confluent_server.spec.tmpl b/confluent_server/confluent_server.spec.tmpl index 8110b83a..1fb62d71 100644 --- a/confluent_server/confluent_server.spec.tmpl +++ b/confluent_server/confluent_server.spec.tmpl @@ -27,7 +27,7 @@ Requires: python3-pyghmi >= 1.5.71, python3-eventlet, python3-greenlet, python3- %if "%{dist}" == ".el9" Requires: python3-pyghmi >= 1.5.71, python3-eventlet, python3-greenlet, python3-pycryptodomex >= 3.4.7, confluent_client == %{version}, python3-pyparsing, python3-paramiko, python3-dns, python3-webauthn, python3-netifaces, python3-pyasn1 >= 0.2.3, python3-pysnmp >= 4.3.4, python3-lxml, python3-eficompressor, python3-setuptools, python3-dateutil, python3-cffi, python3-pyOpenSSL, python3-websocket-client python3-msgpack python3-libarchive-c python3-yaml openssl iproute %else -Requires: python3-dbm,python3-pyghmi >= 1.5.71, python3-eventlet, python3-greenlet, python3-pycryptodome >= 3.4.7, confluent_client == %{version}, python3-pyparsing, python3-paramiko, python3-webauthn, python3-dnspython, python3-netifaces, python3-pyasn1 >= 0.2.3, python3-pysnmp >= 4.3.4, python3-lxml, python3-eficompressor, python3-setuptools, python3-dateutil, python3-cffi, python3-pyOpenSSL, python3-websocket-client python3-msgpack python3-libarchive-c python3-PyYAML openssl iproute +Requires: python3-dbm,python3-pyghmi >= 1.5.71, python3-eventlet, python3-greenlet, python3-pycryptodome >= 3.4.7, confluent_client == %{version}, python3-pyparsing, python3-paramiko, python3-dnspython, python3-netifaces, python3-pyasn1 >= 0.2.3, python3-pysnmp >= 4.3.4, python3-lxml, python3-eficompressor, python3-setuptools, python3-dateutil, python3-cffi, python3-pyOpenSSL, python3-websocket-client python3-msgpack python3-libarchive-c python3-PyYAML openssl iproute %endif %endif