@@ -181,6 +181,14 @@ def add_common_custom_authorizer_commands(self):
181181 CommandLineUtils .m_cmd_custom_auth_password ,
182182 "<str>" ,
183183 "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)" )
184192
185193 def add_common_x509_commands (self ):
186194 self .register_command (
@@ -245,6 +253,8 @@ class CmdData:
245253 input_custom_authorizer_name : str
246254 input_custom_authorizer_signature : str
247255 input_custom_auth_password : str
256+ input_custom_authorizer_token_key_name : str
257+ input_custom_authorizer_token_value : str
248258 # Fleet provisioning
249259 input_template_name : str
250260 input_template_parameters : str
@@ -400,6 +410,8 @@ def parse_sample_input_custom_authorizer_connect():
400410 cmdData .input_custom_authorizer_signature = cmdUtils .get_command (CommandLineUtils .m_cmd_custom_auth_authorizer_signature )
401411 cmdData .input_custom_auth_password = cmdUtils .get_command (CommandLineUtils .m_cmd_custom_auth_password )
402412 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 )
403415 cmdData .input_clientId = cmdUtils .get_command (CommandLineUtils .m_cmd_client_id , "test-" + str (uuid4 ()))
404416 cmdData .input_is_ci = cmdUtils .get_command (CommandLineUtils .m_cmd_is_ci , None ) != None
405417 return cmdData
@@ -488,6 +500,8 @@ def parse_sample_input_mqtt5_custom_authorizer_connect():
488500 cmdData .input_custom_authorizer_signature = cmdUtils .get_command (CommandLineUtils .m_cmd_custom_auth_authorizer_signature )
489501 cmdData .input_custom_auth_password = cmdUtils .get_command (CommandLineUtils .m_cmd_custom_auth_password )
490502 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 )
491505 cmdData .input_clientId = cmdUtils .get_command (CommandLineUtils .m_cmd_client_id , "test-" + str (uuid4 ()))
492506 cmdData .input_use_websockets = bool (cmdUtils .get_command (CommandLineUtils .m_cmd_use_websockets , False ))
493507 cmdData .input_is_ci = cmdUtils .get_command (CommandLineUtils .m_cmd_is_ci , None ) != None
@@ -802,6 +816,8 @@ def parse_sample_input_x509_connect():
802816 m_cmd_custom_auth_authorizer_name = "custom_auth_authorizer_name"
803817 m_cmd_custom_auth_authorizer_signature = "custom_auth_authorizer_signature"
804818 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"
805821 m_cmd_cognito_identity = "cognito_identity"
806822 m_cmd_x509_endpoint = "x509_endpoint"
807823 m_cmd_x509_thing_name = "x509_thing_name"
0 commit comments