aws / aws-iot-device-sdk-embedded-C

SDK for connecting to AWS IoT from a device using embedded C.
MIT License
977 stars 628 forks source link

Fix mqtt_demo_mutual_auth username parameters for client authentication #1893

Closed chinglee-iot closed 11 months ago

chinglee-iot commented 11 months ago

Support parameters in CLIENT_USERNAME

Description Before this PR, CLIENT_USERNAME can't be appended with extra parameters. These parameters are used in client authentication to specify token, signature and authorizer.

Test Specify the authorizer in CLIENT_USERNAME should be able to connect to AWS IoT core. For example,

#define CLIENT_USERNAME    "Test?x-amz-customauthorizer-name=test_nodejs"

Issue

1885

By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.