We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c06c124 commit 55a25b2Copy full SHA for 55a25b2
cmake/kafka.cmake
@@ -28,8 +28,19 @@ else()
28
endif()
29
30
31
-# OAuth Bearer is built into librdkafka when SASL is available
32
-set(FLB_SASL_OAUTHBEARER_ENABLED ${FLB_SASL_ENABLED})
+# OAuth Bearer support:
+# - Windows: Built-in SASL, only needs SSL (no Cyrus SASL required)
33
+# - Linux/macOS: Needs both SSL and Cyrus SASL
34
+if(WIN32)
35
+ if(WITH_SSL)
36
+ set(FLB_SASL_OAUTHBEARER_ENABLED ON)
37
+ else()
38
+ set(FLB_SASL_OAUTHBEARER_ENABLED OFF)
39
+ endif()
40
+else()
41
+ # Non-Windows platforms: require Cyrus SASL
42
+ set(FLB_SASL_OAUTHBEARER_ENABLED ${FLB_SASL_ENABLED})
43
+endif()
44
45
# MSK IAM requires OAuth Bearer support
46
set(FLB_KAFKA_MSK_IAM_ENABLED ${FLB_SASL_OAUTHBEARER_ENABLED})
0 commit comments