|
| 1 | +<!DOCTYPE html> |
| 2 | +<html> |
| 3 | +<head> |
| 4 | + <title>2nd Factor Authentication</title> |
| 5 | + <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> |
| 6 | + <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
| 7 | + <style type="text/css"> |
| 8 | + |
| 9 | + html, body { padding: 0; margin: 0; } |
| 10 | + .test {} |
| 11 | + .table { |
| 12 | + display: table; |
| 13 | + position: absolute; |
| 14 | + height: 100%; |
| 15 | + width: 100%; |
| 16 | + background-color: {{ pageBackgroundColor | default: '#2b2b33' }}; |
| 17 | + } |
| 18 | + |
| 19 | + .cell { |
| 20 | + display: table-cell; |
| 21 | + vertical-align: middle; |
| 22 | + } |
| 23 | + |
| 24 | + .content { |
| 25 | + padding: 25px 0px 25px 0px; |
| 26 | + margin-left: auto; |
| 27 | + margin-right: auto; |
| 28 | + width: 280px; /* login widget width */ |
| 29 | + } |
| 30 | + |
| 31 | + </style> |
| 32 | +</head> |
| 33 | + |
| 34 | +<body> |
| 35 | + |
| 36 | + <div class="table"> |
| 37 | + <div class="cell"> |
| 38 | + <div class="content"> |
| 39 | + <!-- WIDGET --> |
| 40 | + <div class="js-mfa-container mfa-container" id="container"></div> |
| 41 | + </div> |
| 42 | + </div> |
| 43 | + </div> |
| 44 | + |
| 45 | + <script src="//cdn.auth0.com/js/mfa-widget/mfa-widget-1.6.min.js"></script> |
| 46 | + |
| 47 | + <script> |
| 48 | + (function() { |
| 49 | + return new Auth0MFAWidget({ |
| 50 | + container: "container", |
| 51 | + |
| 52 | + theme: { |
| 53 | + icon: "{{ iconUrl | default: 'https://indepth.nice.org.uk/logos/assets/yIOHC7Oexa/logo-landscape-800x281-800x281.png' }}", |
| 54 | + primaryColor: "{{ primaryColor | default: '#228096' }}" |
| 55 | + }, |
| 56 | + |
| 57 | + requesterErrors: [ |
| 58 | + {% for error in errors %} |
| 59 | + { message: "{{ error.message }}", errorCode: "{{ error.code }}" } |
| 60 | + {% endfor %} |
| 61 | + ], |
| 62 | + |
| 63 | + mfaServerUrl: "{{ mfaServerUrl }}", |
| 64 | + {% if ticket %} |
| 65 | + ticket: "{{ ticket }}", |
| 66 | + {% else %} |
| 67 | + requestToken: "{{ requestToken }}", |
| 68 | + {% endif %} |
| 69 | + postActionURL: "{{ postActionURL }}", |
| 70 | + |
| 71 | + userData: { |
| 72 | + userId: "{{ userData.userId }}", |
| 73 | + email: "{{ userData.email }}", |
| 74 | + friendlyUserId: "{{ userData.friendlyUserId }}", |
| 75 | + tenant: "{{ userData.tenant }}", |
| 76 | + {% if userData.tenantFriendlyName %} |
| 77 | + tenantFriendlyName: "{{ userData.tenantFriendlyName }}" |
| 78 | + {% endif %} |
| 79 | + }, |
| 80 | + globalTrackingId: "{{ globalTrackingId }}", |
| 81 | + {% if allowRememberBrowser %}allowRememberBrowser: {{ allowRememberBrowser }}, {% endif %} |
| 82 | + {% if stateCheckingMechanism %}stateCheckingMechanism: "{{ stateCheckingMechanism }}", {% endif %} |
| 83 | + }); |
| 84 | + })(); |
| 85 | + </script> |
| 86 | +</body> |
| 87 | +</html> |
0 commit comments