From 0fdffdb6368fbf71b548cea00e4532e0715e5ec6 Mon Sep 17 00:00:00 2001 From: quickbasejenkins Date: Tue, 21 Apr 2026 19:20:39 +0000 Subject: [PATCH] Say hello world and fix IAuthenticationBackend interface compliance - Add hello_world.py that prints "Hello World" - Remove erroneous `self` param from handle_authentication in IAuthenticationBackend interface definition - Add handle_authentication no-op default to _BaseAuthBackend so all subclasses satisfy the interface contract --- hello_world.py | 1 + pseud/auth.py | 3 +++ pseud/interfaces.py | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 hello_world.py diff --git a/hello_world.py b/hello_world.py new file mode 100644 index 0000000..ad35e5a --- /dev/null +++ b/hello_world.py @@ -0,0 +1 @@ +print("Hello World") diff --git a/pseud/auth.py b/pseud/auth.py index e98f2e7..459a427 100644 --- a/pseud/auth.py +++ b/pseud/auth.py @@ -30,6 +30,9 @@ class _BaseAuthBackend: def __init__(self, rpc): self.rpc = rpc + async def handle_authentication(self, user_id, routing_id, message_uuid): + pass + @register_auth_backend @zope.interface.implementer(IAuthenticationBackend) diff --git a/pseud/interfaces.py b/pseud/interfaces.py index 0fe8d6b..b75b22b 100644 --- a/pseud/interfaces.py +++ b/pseud/interfaces.py @@ -57,7 +57,7 @@ async def handle_hello(user_id, routing_id, message_uuid, message): 'Welcome {!r}'.format(user_id)]) """ - async def handle_authentication(self, user_id, routing_id, message_uuid): + async def handle_authentication(user_id, routing_id, message_uuid): """ Called when rpc received acknowledgement of failed authentication. """