@@ -181,6 +181,14 @@ def add_common_custom_authorizer_commands(self):
181
181
CommandLineUtils .m_cmd_custom_auth_password ,
182
182
"<str>" ,
183
183
"The password to send when connecting through a custom authorizer (optional)" )
184
+ self .register_command (
185
+ CommandLineUtils .m_cmd_custom_auth_token_key_name ,
186
+ "<str>" ,
187
+ "Key used to extract the custom authorizer token (optional)" )
188
+ self .register_command (
189
+ CommandLineUtils .m_cmd_custom_auth_token_value ,
190
+ "<str>" ,
191
+ "The opaque token value for the custom authorizer (optional)" )
184
192
185
193
def add_common_x509_commands (self ):
186
194
self .register_command (
@@ -245,6 +253,8 @@ class CmdData:
245
253
input_custom_authorizer_name : str
246
254
input_custom_authorizer_signature : str
247
255
input_custom_auth_password : str
256
+ input_custom_authorizer_token_key_name : str
257
+ input_custom_authorizer_token_value : str
248
258
# Fleet provisioning
249
259
input_template_name : str
250
260
input_template_parameters : str
@@ -400,6 +410,8 @@ def parse_sample_input_custom_authorizer_connect():
400
410
cmdData .input_custom_authorizer_signature = cmdUtils .get_command (CommandLineUtils .m_cmd_custom_auth_authorizer_signature )
401
411
cmdData .input_custom_auth_password = cmdUtils .get_command (CommandLineUtils .m_cmd_custom_auth_password )
402
412
cmdData .input_custom_auth_username = cmdUtils .get_command (CommandLineUtils .m_cmd_custom_auth_username )
413
+ cmdData .input_custom_authorizer_token_key_name = cmdUtils .get_command (CommandLineUtils .m_cmd_custom_auth_token_key_name )
414
+ cmdData .input_custom_authorizer_token_value = cmdUtils .get_command (CommandLineUtils .m_cmd_custom_auth_token_value )
403
415
cmdData .input_clientId = cmdUtils .get_command (CommandLineUtils .m_cmd_client_id , "test-" + str (uuid4 ()))
404
416
cmdData .input_is_ci = cmdUtils .get_command (CommandLineUtils .m_cmd_is_ci , None ) != None
405
417
return cmdData
@@ -488,6 +500,8 @@ def parse_sample_input_mqtt5_custom_authorizer_connect():
488
500
cmdData .input_custom_authorizer_signature = cmdUtils .get_command (CommandLineUtils .m_cmd_custom_auth_authorizer_signature )
489
501
cmdData .input_custom_auth_password = cmdUtils .get_command (CommandLineUtils .m_cmd_custom_auth_password )
490
502
cmdData .input_custom_auth_username = cmdUtils .get_command (CommandLineUtils .m_cmd_custom_auth_username )
503
+ cmdData .input_custom_authorizer_token_key_name = cmdUtils .get_command (CommandLineUtils .m_cmd_custom_auth_token_key_name )
504
+ cmdData .input_custom_authorizer_token_value = cmdUtils .get_command (CommandLineUtils .m_cmd_custom_auth_token_value )
491
505
cmdData .input_clientId = cmdUtils .get_command (CommandLineUtils .m_cmd_client_id , "test-" + str (uuid4 ()))
492
506
cmdData .input_use_websockets = bool (cmdUtils .get_command (CommandLineUtils .m_cmd_use_websockets , False ))
493
507
cmdData .input_is_ci = cmdUtils .get_command (CommandLineUtils .m_cmd_is_ci , None ) != None
@@ -802,6 +816,8 @@ def parse_sample_input_x509_connect():
802
816
m_cmd_custom_auth_authorizer_name = "custom_auth_authorizer_name"
803
817
m_cmd_custom_auth_authorizer_signature = "custom_auth_authorizer_signature"
804
818
m_cmd_custom_auth_password = "custom_auth_password"
819
+ m_cmd_custom_auth_token_key_name = "custom_auth_token_key_name"
820
+ m_cmd_custom_auth_token_value = "custom_auth_token_value"
805
821
m_cmd_cognito_identity = "cognito_identity"
806
822
m_cmd_x509_endpoint = "x509_endpoint"
807
823
m_cmd_x509_thing_name = "x509_thing_name"
0 commit comments