Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetValidateRequest ¶
func GetValidateRequest() func(w http.ResponseWriter, r *http.Request, next http.HandlerFunc)
GetValidateRequest checks if a request is correct or not.
func GetVerifyJSON ¶
func GetVerifyJSON(appID string) func(http.ResponseWriter, *http.Request, http.HandlerFunc)
GetVerifyJSON Decode the JSON request and verify it.
func IsValidAlexaRequest ¶
func IsValidAlexaRequest(w http.ResponseWriter, r *http.Request) bool
IsValidAlexaRequest handles all the necessary steps to validate that an incoming http.Request has actually come from the Alexa service. If an error occurs during the validation process, an http.Error will be written to the provided http.ResponseWriter. The required steps for request validation can be found on this page: --insecure-skip-verify flag will disable all validations https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/developing-an-alexa-skill-as-a-web-service#hosting-a-custom-skill-as-a-web-service
Types ¶
This section is empty.