Skip to content

Commit c01d39e

Browse files
committed
Fix missing token expiration setting.
1 parent 1efe16b commit c01d39e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

internal/integration/mqtt/auth/azure_iot_hub.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,11 @@ func NewAzureIoTHubAuthentication(c config.Config) (Authentication, error) {
9393
}
9494

9595
return &AzureIoTHubAuthentication{
96-
clientID: conf.DeviceID,
97-
username: username,
98-
deviceKey: deviceKeyB,
99-
hostname: conf.Hostname,
96+
clientID: conf.DeviceID,
97+
username: username,
98+
deviceKey: deviceKeyB,
99+
hostname: conf.Hostname,
100+
sasTokenExpiration: conf.SASTokenExpiration,
100101
tlsConfig: &tls.Config{
101102
RootCAs: certpool,
102103
},

0 commit comments

Comments
 (0)