10000 Request Object should validate applicationId · Issue #31 · anjishnu/ask-alexa-pykit · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Request Object should validate applicationId #31

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
peterpanning opened this issue Jan 11, 2017 · 3 comments
Open

Request Object should validate applicationId #31

peterpanning opened this issue Jan 11, 2017 · 3 comments

Comments

@peterpanning
Copy link

Hey,

According to the Amazon guidelines for developing an Alexa skill, there should be some validation of Alexa requests within Lambda function codes.

https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/handling-requests-sent-by-alexa

The Request object seems like a good place to do that, since it's already doing some wrapping of Request JSONs anyways. I'm not sure how to go about raising an HTTP 400 Error without using some more robust framework, but I think this should at least raise an Assertion Error if the applicationIds don't line up

https://github.com/peterpanning/AlexaTransit/commit/2d7fdbcca77cd45514990be4fe478e417064cce6

Thoughts?

@fernandoaguilar
Copy link

Hi,

I implemented some code that does this and submitted a pull request.

#32

@anjishnu
Copy link
Owner

Thanks for this guys - I'm going to look at the PR soon

@fernandoaguilar
Copy link

btw just a note, I submitted an Alexa app with this app id verification code and passed Amazons certification process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
0