alexa / alexa-skills-kit-sdk-for-java

The Alexa Skills Kit SDK for Java helps you get a skill up and running quickly, letting you focus on skill logic instead of boilerplate code.
http://developer.amazon.com/ask
Apache License 2.0
818 stars 748 forks source link

Add special timestamp verification for skill event requests #270

Closed breedloj closed 3 years ago

breedloj commented 3 years ago

Description

Decouples the verification tolerances for standard skill requests and skill event requests which have different maximums.

Motivation and Context

Due to the delivery characteristics of skill event requests, these requests may arrive with a timestamp value of up to 1 hour prior to the current time and are verified against a different upper bound value than standard requests.

Standard requests should be verified within 150 seconds. This change splits the verification logic of the two request classes.

https://developer.amazon.com/en-US/docs/alexa/smapi/skill-events-in-alexa-skills.html#delivery-of-events-to-the-skill

Types of changes

Checklist

License