Setting up your Vonage Credentials
To complete this tutorial, you will need a Vonage API account. If you don’t have one already, you can sign up today and start building with free credit. Once you have an account, you can find your API Key and API Secret at the top of the Vonage API Dashboard.
You'll also need an application set up in the Vonage Dashboard. This application will contain your API credentials needed to make the API calls. Follow these steps:
- Go to the Dashboard and select "Applications" from the left side menu.
- Click the "Create a new application" button.
- Enter a name for your application in the "Name" field.
- Click "Generate public and private key" to generate a key pair. A private key file will be automatically downloaded. Save this file securely, as it is requried for generating JWTs.
- Scroll to the capabilities section and enable the "Network Registry" capability. Make sure the "Playground" environment is selected. Leave the rest of the Network Registry configuration empty. We'll come here later in the tuturial.
- Click the "Generate new application" button to finish the creation process.
- After the application is created, copy the Application ID displayed on the dashboard.
Now, create a .env file under the vonage-verify/server folder, and add your Vonage credentials:
VONAGE_APP_ID=your_app_id
VONAGE_PRIVATE_KEY=/path/anavarro/.keys/private.key
Replace your_app_id with the Application ID from the Vonage Dashboard. Replace the path to your private.key.
After this step, your backend folder structure should look like this:
backend/
├── server.js # Main server file
├── .env # Environment variables
├── private.key # Your private key file
└── package.json # Project configuration
Getting Started with Silent Authentication
Silent Authentication takes quite a bit to understand. This tutorial shows you how to build an integration from scratch with Nodejs and Kotlin