Skip to content

IoTCoreCustomAuthorizerResponse create invalid payalod #1131

@flobz

Description

@flobz

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions