Checkpoint

0.1.0

Verify's Amazon Alexa requests
vapor-community/checkpoint

What's New

Alexa Verifier Middleware is here!

2018-05-09T03:53:12Z

This middleware will validate Amazon Alexa requests. This is required for an Alexa skill service not hosted on AWS Lambda. Enjoy!

Checkpoint ✅

Checkpoint verifies incoming Alexa requests as requested By Amazon - Amazon doc

Usage

  1. In Package.swift add
.package(url: "https://github.com/AAAstorga/alexa-verifier-provider.git", from: "0.1.0")
  1. You should only use this middleware on the route Amazon will be calling for your skill. To do this you can do something like this:
import Checkpoint
...
let alexa = router.grouped(Checkpoint.self)

//Alexa.self would be your struct you use to decode the request send by Amazon to your service
//You would need to most likely return a json following the specifications Amazon set
alexa.post(Alexa.self, at: "alexa") { req, alexa -> String in
  //do stuff with alexa and return the proper response
  return "Hi Alexa!"
}

Authors

  • Austin Astorga - Main developer - My Github

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

  • Vapor Discord (for helping me with all my issues <3)
  • Shoutout to @vzsg for helping me with all the certificate stuff! Appreciate it.

Description

  • Swift Tools 4.0.0
View More Packages from this Author

Dependencies

Last updated: Sun Mar 17 2024 23:02:05 GMT-0900 (Hawaii-Aleutian Daylight Time)