Replies: 2 comments
-
Here you can find a MQTTNet.ICredentialsProvider implementation to produce username/password from a device connection string |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks I’ll have a look at that and get back to you.
From: Rido ***@***.***>
Sent: Thursday, October 5, 2023 12:43 AM
To: dotnet/MQTTnet ***@***.***>
Cc: David Jones (MVP) ***@***.***>; Author ***@***.***>
Subject: Re: [dotnet/MQTTnet] Azure IoT Hub Connectivity - Authentication ?? (Discussion #1852)
Here you can find a MQTTNet.ICredentialsProvider implementation to produce username/password from a device connection string
https://github.com/iotmodels/MQTTnet.Client.Extensions.AzureIoT/blob/6c1fabbfb51db0ef1520d7fb7ddbd64e8525d1b5/src/MQTTnet.Client.Extensions.AzureIoT/Auth/SasCredentials.cs#L7
—
Reply to this email directly, view it on GitHub<#1852 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AC7U2EPTULL3IDHG67CBGVTX5VRW5AVCNFSM6AAAAAA5SCGPKOVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TCOBXGM2DQ>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How can I add Authentication when making a connection from a device?
My code thus far:
This runs OK but fails to connect. Doesn't crash though. Can queue telemetry.
My current issue is constructing the Authentication parameters, method and data.
I have the IoT centric username and password, the latter being a SAS key.
I would prefer if I could just use a connection string eg
DeviceClient.CreateFromConnectionString()
Nb: App is .Net Standard
Beta Was this translation helpful? Give feedback.
All reactions