aws / aws/aws-lambda-rust-runtime
IoTCoreCustomAuthorizerResponse create invalid payalod
- Dominant language
- Rust
- Stars
- 3.6k
- Forks
- 396
- PR merge metrics
- No merged PRs in 30d
Description
It seems that IoTCoreCustomAuthorizerResponse can create a payload not accepted by AWS IOT broker.
The following attributes: `pub policy_documents: Vec>` allow a Vec that contains None but AWS IOT broker raise an AUTHORIZATION_FAILURE error in that case.
The corresponding json value is:
```json
"policyDocuments": [
null
]
```
Should policy_documents type be: `Vec>` instead ?
Contributor guide
Assessment
This issue has not been assessed yet.