sansmoraxz commented on code in PR #4055:
URL: https://github.com/apache/iggy/pull/4055#discussion_r3983043762


##########
core/server/src/dispatch/session_ops.rs:
##########
@@ -1309,6 +1312,192 @@ pub(in crate::dispatch) async fn 
handle_login_register_request<B, MJ, S, SB>(
     }
 
     let body_tail = &body[prefix_len..];
+
+    if external_auth.enabled {
+        let ext_request = if let Ok((wire_request, _)) =
+            LoginRegisterRequest::decode_after_prefix(version_info.clone(), 
body_tail)
+        {
+            crate::external_auth::ExternalAuthRequest {
+                credential_type: 
crate::external_auth::CredentialType::Password,
+                credential: if external_auth.forward_credentials {
+                    Some(wire_request.password.expose_secret().to_owned())
+                } else {
+                    None
+                },
+                username: wire_request.username.to_string(),
+                transport: "binary".to_owned(),

Review Comment:
   Fixed.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to