-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
Not sure how active this repo is. I'd love to be able to work with someone to get this fixed and may even PR it if I can.
I've been building an Alexa skill with Botman and this driver.
The skill is failing Amazon's automated tests because it wasn't checking the request signature.
To publish a Skill it looks like you have to:
- check that the request is properly from Alexa (https://developer.amazon.com/docs/custom-skills/host-a-custom-skill-as-a-web-service.html#verify-request-sent-by-alexa)
- verify the timestamp is valid (https://developer.amazon.com/docs/custom-skills/host-a-custom-skill-as-a-web-service.html#check-request-timestamp)
- verify that the request was for your skill (https://developer.amazon.com/docs/custom-skills/handle-requests-sent-by-alexa.html)
I've had a quick look through the source for this driver and I can't see any code that does any of this.
Can I ask:
- Does anyone think that the driver should be doing this? Am I just missing something? Or is the code missing something?
- If the code is missing something, can someone suggest where I should add these checks? I'm thinking it probably goes in
AmazonAlexaDriver->matchesRequest()does that seem right? Or does BotMan have some other place I should put this kind of "middleware" check?
Thanks for any help.
gabbanaesteban
Metadata
Metadata
Assignees
Labels
No labels