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: