aws-connected-device-framework
aws-connected-device-framework copied to clipboard
AssetLibrary AUTHORIZATION_ENABLED=true configuration returning 403 Forbidden error
Aws Connected Device Framework Affected Module(s):
- AssetLibrary
I'm submitting a ...
- [x] bug report
- [ ] feature request
Description: The default "AUTHORIZATION_ENABLED=true" setting causes AssetLibrary requests to not work.
Current behavior:
curl -v -k -X 'POST' \
-H 'accept: */*' \
-H 'Content-Type: application/vnd.aws-cdf-v2.0+json' \
-H 'x-api-key: <api-key>' \
-d '{"properties": {"code": {"type": "string"}}}' \
'https://<stage>.execute-api.us-west-2.amazonaws.com/Prod/templates/device/robotWithSensor'
returns 403 Forbidden error
Expected behavior: The request should create the resource and return a 200 status code
Steps to reproduce:
- Deploy main HEAD (https://github.com/aws/aws-connected-device-framework/commit/f3fb09d2fdc6707dcdf4a8dd5841c9f0b58a5d05) using the ApiKey ApiGW configuration.
- Run the above curl request
- Observe the 403 error
Additional Information: