Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 1.35 KB

File metadata and controls

22 lines (17 loc) · 1.35 KB

Validate Callback Request event from Sinch Verification using SpringBoot

This project validates a Verification Event callback received from the Sinch platform when using the Sinch Verification product with callbacks enabled.

Requirements

Install

  • replace the required values in the - ./application/src/main/java/verification/eventhandler/App.java file
  • run ./gradlew build to build the project with all the required dependencies
  • run the server using ./gradlew :application:bootRun
  • start ngrok ngrok http 8000
    • copy the ngrok url to the Verification App that you will receive Verification Events from to your Sinch Dashboard
    • make sure to append the following URI at the end of the URL, /api/verification/events
    • example https://df6a-143-177-206-33.ngrok.io/api/verification/events
  • test using the SMS PIN Verification scripts found in the project
    • replace the required values in the ./library/src/main/java/verification/smsverification/App.java file
    • run the command ./gradlew :library:run
    • by default, the request authenticates by application signing the HTTP request. To switch to basic authentication, comment line 50 and uncomment line 44.