This is an automated email from the ASF dual-hosted git repository.

maciej pushed a commit to branch fix-login-with-pat
in repository https://gitbox.apache.org/repos/asf/iggy.git

commit 245d12e981cc430f76db8ab4948b3aa4c7e5e24c
Author: Maciej Modzelewski <[email protected]>
AuthorDate: Thu Jan 15 17:25:38 2026 +0100

    fix(rust): fix log in with PAT by publishing missing diagnostic event
---
 .../src/client/binary_personal_access_tokens/mod.rs               | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git 
a/core/binary_protocol/src/client/binary_personal_access_tokens/mod.rs 
b/core/binary_protocol/src/client/binary_personal_access_tokens/mod.rs
index fffca48db..bb151dde7 100644
--- a/core/binary_protocol/src/client/binary_personal_access_tokens/mod.rs
+++ b/core/binary_protocol/src/client/binary_personal_access_tokens/mod.rs
@@ -1,4 +1,5 @@
-/* Licensed to the Apache Software Foundation (ASF) under one
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
  * distributed with this work for additional information
  * regarding copyright ownership.  The ASF licenses this file
@@ -24,8 +25,8 @@ use 
iggy_common::delete_personal_access_token::DeletePersonalAccessToken;
 use iggy_common::get_personal_access_tokens::GetPersonalAccessTokens;
 use 
iggy_common::login_with_personal_access_token::LoginWithPersonalAccessToken;
 use iggy_common::{
-    ClientState, IdentityInfo, IggyError, PersonalAccessTokenExpiry, 
PersonalAccessTokenInfo,
-    RawPersonalAccessToken,
+    ClientState, DiagnosticEvent, IdentityInfo, IggyError, 
PersonalAccessTokenExpiry,
+    PersonalAccessTokenInfo, RawPersonalAccessToken,
 };
 
 #[async_trait::async_trait]
@@ -70,6 +71,7 @@ impl<B: BinaryClient> PersonalAccessTokenClient for B {
             })
             .await?;
         self.set_state(ClientState::Authenticated).await;
+        self.publish_event(DiagnosticEvent::SignedIn).await;
         mapper::map_identity_info(response)
     }
 }

Reply via email to