It seems that IoTCoreCustomAuthorizerResponse can create a payload not accepted by AWS IOT broker.
The following attributes: pub policy_documents: Vec<Option<IamPolicyDocument>> allow a Vec that contains None but AWS IOT broker raise an AUTHORIZATION_FAILURE error in that case.
The corresponding json value is:
"policyDocuments": [
null
]
Should policy_documents type be: Vec<IamPolicyDocument>> instead ?
It seems that IoTCoreCustomAuthorizerResponse can create a payload not accepted by AWS IOT broker.
The following attributes:
pub policy_documents: Vec<Option<IamPolicyDocument>>allow a Vec that contains None but AWS IOT broker raise an AUTHORIZATION_FAILURE error in that case.The corresponding json value is:
Should policy_documents type be:
Vec<IamPolicyDocument>>instead ?