From 10a48cdd1c33b0654285ec2b737f707de445ee91 Mon Sep 17 00:00:00 2001 From: Arzumify Date: Wed, 2 Oct 2024 17:45:37 +0100 Subject: [PATCH] Let the authentication service able to send the public key Signed-off-by: Arzumify --- services-src/auth/main.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/services-src/auth/main.go b/services-src/auth/main.go index e5e7484..0e6e081 100644 --- a/services-src/auth/main.go +++ b/services-src/auth/main.go @@ -1791,6 +1791,16 @@ func Main(information library.ServiceInitializationInformation) { }, SentAt: time.Now(), } + case 2: + // A service would like to have the public key + // Send it to them + information.Outbox <- library.InterServiceMessage{ + MessageType: 2, + ServiceID: ServiceInformation.ServiceID, + ForServiceID: message.ServiceID, + Message: publicKey, + SentAt: time.Now(), + } } } }()