Python
Create the Python application
Enter the following commands at a terminal prompt:
mkdir stepup-auth cd stepup-auth touch server.py mkdir -p static/styles mkdir templates
This gives your project the following directory structure:
└── python-stepup-auth
├── server.py
├── static
│ └── styles
└── templates
The application you will create uses the Flask framework for the routing and the built-in jinja template engine for creating the UI.
In addition to flask, you will be using the following external modules:
python-dotenv- to store your Vonage API key and secret and the name of your application in a.envfilevonage- the Python Server SDK
Install these dependencies by running the following pip command at a terminal prompt:
pip install flask python-dotenv vonage
Note: This tutorial assumes that you have Python 3 installed and are running in a Unix-like environment. The terminal commands for Windows environments might be different.
Step-up Authentication
Add an extra layer of security when users perform sensitive tasks
手順
1
Introduction2
Create the Node.js application3
Initialize your dependencies4
Configure the application5
Define the routes6
Create the UI7
Display the home page8
Send the verification request9
Check the verification code10
Try it out!11
What's next?