-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
task(recovery-phone): Support twilio api key
Because: - We want to use twilio API keys - We don't want to use the twilio Auth Token This Commit: - Switches over to using api keys - Adds method for signing webhook urls, so we can validate webhook calls originated from us. - Adds ability to configure webhook url, keys for signing, and api keys. - Still supports authToken so it's backwards compatible - Creates custom mechanism for validating webhook calls, since the authToken is used by twilio to validate the signed payload. - Removes the twilio-signature auth strategy and moves validation inline due to hapi limitations accessing the payload in the authorization. - Adds lots of comments and some doc about how to manually test this with ngrok. - Updates functional tests so they work with api keys - Updates functional tests so they can work for smoke tests as well as ci pipeline tests. - Updates functional tests so that twilio client can be configured independently of auth servers twilio client.
- Loading branch information
Showing
21 changed files
with
805 additions
and
243 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.