Python
Create the UI
The application will use the jinja template engine to render the pages as HTML.
In a folder called views in your application directory, create the following templates:
layout.html
<!-- layout.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="/static/styles/style.css">
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Open+Sans:300">
<title>Step-up Authentication Example</title>
</head>
<body>
{% block content %}{% endblock %}
</body>
</html>
index.html
authenticate.html
entercode.html
Finally, create a file called style.css in the static/styles directory, which contains the following style sheet:
Step-up Authentication
Add an extra layer of security when users perform sensitive tasks
Steps
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?