init commit
parents
Showing
.gitignore
0 → 100644
File added
Dockerfile
0 → 100644
mvnw
0 → 100644
mvnw.cmd
0 → 100644
pom.xml
0 → 100644
14.7 KB
49.7 KB
23.7 KB
19.8 KB
9.29 KB
15.9 KB
17.7 KB
<!DOCTYPE html> | |||
<html lang="en"> | |||
<head> | |||
<meta charset="utf-8"> | |||
<meta name="viewport" content="width=device-width, initial-scale=1"> | |||
<link rel="shortcut icon" href="favicon.ico"> | |||
<link rel="stylesheet" href="https://code.getmdl.io/1.3.0/material.teal-pink.min.css" /> | |||
<script src="//code.getmdl.io/1.3.0/material.min.js"></script> | |||
<!-- CSS only --> | |||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-iYQeCzEYFbKjA/T2uDLTpkwGzCiq6soy8tYaI1GyVh/UjpbCx/TYkiZhlZB6+fzT" crossorigin="anonymous"> | |||
<!-- Web Animations polyfill for Edge. --> | |||
<script src="https://rawgit.com/web-animations/web-animations-js/master/web-animations.min.js"></script> | |||
<title>Webauthn Demo</title> | |||
<!-- css --> | |||
<style> | |||
.btn-color { | |||
background-image: linear-gradient(60deg, #64b3f4 0%, #c2e59c 100%); | |||
border-radius: 50px; | |||
color:white; | |||
height: 50px; | |||
border: 0px; | |||
font-size: 16px; | |||
text-align: center; | |||
} | |||
.ipt-text { | |||
border: none; | |||
border-bottom: 2px solid gray; | |||
height: 30px; | |||
width: 100%; | |||
} | |||
label { | |||
color: #718598; | |||
cursor: default; | |||
font-weight: bold; | |||
font-size: 14px; | |||
} | |||
</style> | |||
</head> | |||
<body> | |||
<!-- navbar --> | |||
<nav class="navbar bg-light navbar-light"> | |||
<div class="container-fluid"> | |||
<!-- <a href="#" class="navbar-brand"><img src="img/logo1.png" alt="Taiwan Tech Logo" class="navbar-brand" style="height: 40pt"></a>--> | |||
<a href="#" class="navbar-brand">FIDO DEMO</a> | |||
<button class="navbar-toggler" | |||
type="button" | |||
data-bs-toggle="collapse" | |||
data-bs-target="#menu"> | |||
<span class="navbar-toggler-icon"></span> | |||
</button> | |||
<div class="collapse navbar-collapse" id="menu"> | |||
<ul class="navbar-nav"> | |||
<li class="nav-item"> | |||
<label for="switch-rk" class="nav-link">Resident Key</label> | |||
<input type="checkbox" id="switch-rk"> | |||
</li> | |||
<li class="nav-item"> | |||
<label for="switch-rr" class="nav-link">Prevent Registration</label> | |||
<input type="checkbox" id="switch-rr"> | |||
</li> | |||
<li class="nav-item"> | |||
<label for="switch-uvm" class="nav-link">User Verification Method</label> | |||
<input type="checkbox" id="switch-uvm"> | |||
</li> | |||
<li class="nav-item"> | |||
<label for="attachment" class="nav-link">Attachment Type</label> | |||
<select id="attachment" class="attachment"> | |||
<option value="none">N/A</option> | |||
<option value="cross-platform">Cross-Platform</option> | |||
<option value="platform">Platform</option> | |||
</select> | |||
</li> | |||
<li class="nav-item"> | |||
<label for="userVerification" class="nav-link">User Verification</label> | |||
<select id="userVerification" class="attachment"> | |||
<option value="none">None</option> | |||
<option value="required">Required</option> | |||
<option value="preferred">Preferred</option> | |||
<option value="discouraged">Discouraged</option> | |||
</select> | |||
</li> | |||
<li class="nav-item"> | |||
<label for="conveyance" class="nav-link">Conveyance Preference</label> | |||
<select id="conveyance" class="attachment"> | |||
<option value="NA">N/A</option> | |||
<option value="none">None</option> | |||
<option value="indirect">Indirect</option> | |||
<option value="direct">Direct</option> | |||
</select> | |||
</li> | |||
<li class="nav-item"> | |||
<label class="nav-link" for="customTimeout">Timeout (milliseconds)</label> | |||
<input type="number" id="customTimeout"> | |||
</li> | |||
<li class="nav-item"> | |||
<label class="nav-link" for="abortTimeout">AbortTimeout (milliseconds)</label> | |||
<input type="number" id="abortTimeout"> | |||
</li> | |||
</ul> | |||
</div> | |||
</div> | |||
</nav> | |||
<!-- body--> | |||
<div class="container"> | |||
<div class="row justify-content-center"> | |||
<div class="col-4" style="width: 400px; padding-top: 150px;"> | |||
<div class="card shadow-lg p-5" style="border: 0px;"> | |||
<div class="row justify-content-start"> | |||
<!-- <div style="padding-top: 50px; padding-bottom: 40px;">--> | |||
<!-- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="293px" height="50px" viewBox="0 0 293 75"><title>iThome</title><desc>Created with Sketch.</desc><defs><polygon id="path-1" points="0.111529282 0.0703 47.097518 0.0703 47.097518 41 0.111529282 41"></polygon></defs><g id="首頁" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="Group-86" transform="translate(-833.000000, -138.500000)"></g><g id="Group-14" transform="translate(2.000000, 7.000000)"><polygon id="Fill-1" fill="#1686C2" points="6.2046 21.6725 -0.0004 60.8355 19.0246 60.8355 25.2256 21.6725"></polygon><polygon id="Fill-2" fill="#1686C2" points="9.7605 1.0004 6.7825 17.5474 25.8105 17.5474 28.7855 1.0004"></polygon><polygon id="Fill-3" fill="#1686C2" points="33.5124 1.0292 30.6464 19.0962 41.8674 18.5822 35.1934 60.5512 55.4024 60.5512 62.0764 18.5822 73.1314 19.0962 75.9924 1.0292"></polygon><g id="Group-13" transform="translate(71.000000, 0.721600)"><path d="M10.0831,0.3033 L29.1111,0.3033 L26.4931,16.8223 L23.8891,27.6613 L24.1861,27.6613 C28.3911,23.4613 32.5441,20.0703 38.0021,20.0703 C47.7331,20.0703 50.0341,27.4433 48.6641,36.0673 L44.8591,60.1133 L26.2721,60.1133 L29.4751,39.9063 C29.8001,37.8423 29.9141,35.2593 27.1851,35.2593 C24.2351,35.2593 23.2221,37.4723 22.8411,39.9063 L19.6361,60.1133 L0.6101,60.1133 L10.0831,0.3033 Z" id="Fill-4" fill="#1686C2"></path><path d="M97.8838,41.0147 C95.8298,53.9927 83.2098,60.9997 70.9708,60.9997 C58.7298,60.9997 48.3368,53.9927 50.3918,41.0147 C52.5618,27.2967 64.5498,20.0707 77.4538,20.0707 C90.3638,20.0707 100.0588,27.2967 97.8838,41.0147 M68.8758,40.7177 C68.3848,43.8127 70.3808,46.1017 73.3298,46.1017 C76.2828,46.1017 79.0028,43.8127 79.4968,40.7177 C79.9978,37.5487 78.2688,34.9657 75.0958,34.9657 C71.9218,34.9657 69.3768,37.5487 68.8758,40.7177" id="Fill-6" fill="#1686C2"></path><path d="M120.3907,27.8829 L120.9847,27.8829 C123.2877,23.0929 128.5607,20.0669 133.5767,20.0669 C139.1847,20.0669 142.6157,23.0929 143.4707,28.4019 L143.9067,28.4019 C146.9907,22.9429 151.0577,20.0669 157.0997,20.0669 C166.4677,20.0669 169.4537,27.2969 168.1097,35.7779 L164.2607,60.1159 L145.8207,60.1159 L148.8937,40.7149 C149.2507,38.4359 149.7227,35.4809 146.9187,35.4809 C144.1897,35.4809 143.7207,38.4359 143.3637,40.7149 L140.2867,60.1159 L121.8497,60.1159 L124.9227,40.7149 C125.2847,38.4359 125.7487,35.4809 122.9527,35.4809 C120.2227,35.4809 119.7577,38.4359 119.3887,40.7149 L116.3207,60.1159 L97.8837,60.1159 L104.0857,20.9539 L122.0787,20.9539 L120.3907,27.8829 Z" id="Fill-8" fill="#1686C2"></path><g id="Group-12" transform="translate(169.000000, 20.000000)"><mask id="mask-2" fill="white"><use xlink:href="#path-1"></use></mask><g id="Clip-11"></g><path d="M18.7911,23.7403 C18.2901,26.9133 18.2471,30.4553 22.2291,30.4553 C24.2181,30.4553 25.9161,29.0523 26.5821,27.2103 L45.0901,27.2103 C41.0841,36.6503 29.8541,41.0003 20.8541,41.0003 C8.5391,41.0003 -1.7419,34.6583 0.3941,21.1583 C2.4501,8.1763 13.7691,0.0703 26.2311,0.0703 C40.1681,0.0703 49.7331,9.0633 46.4491,23.7403 L18.7911,23.7403 Z M29.0001,15.6273 C29.4221,12.9723 27.8881,10.5413 25.1651,10.5413 C22.2821,10.5413 20.5081,12.8983 20.0791,15.6273 L29.0001,15.6273 Z" id="Fill-10" fill="#1686C2" mask="url(#mask-2)"></path></g></g></g></g></svg>--> | |||
<!-- <p style="padding-top: 10px; text-align: center; color: gray;"> For Demo</p>--> | |||
<!-- </div>--> | |||
<div > | |||
<img src="img/logo4.png" style="width: 250px;display:block; margin:auto;" alt="logo2"> | |||
<h1 style="text-align: center">FIDO DEMO</h1> | |||
</div> | |||
<!-- <div class="col">--> | |||
<!-- <label for="username" class="form-label">Name</label>--> | |||
<!-- </div>--> | |||
</div> | |||
<div class="row"> | |||
<div class="col"> | |||
<input type="text" class="form-control" id="username" required> | |||
</div> | |||
</div> | |||
<!-- <div class="row" style="padding-top: 60px;">--> | |||
<div class="col py-3"> | |||
<button class="btn-color" id="credential-button" style="width: 100%">Register</button> | |||
</div> | |||
<!-- <div class="col py-3">--> | |||
<button class="btn-color" id="authenticate-button" style="width: 100%">Login</button> | |||
<!-- </div>--> | |||
<!-- </div>--> | |||
<div> | |||
<input type="hidden" id="active"> | |||
<!-- <input type="hidden" id="username" value="Josh Ji">--> | |||
<!-- <input type="hidden" id="credential-button">--> | |||
<!-- <input type="hidden" id="switch-rk" >--> | |||
<!-- <input type="hidden" id="switch-rr" >--> | |||
<!-- <input type="hidden" id="switch-uvm">--> | |||
<!-- <input type="hidden" id="userVerification" value="none">--> | |||
<!-- <input type="hidden" id="attachment" value="none">--> | |||
<!-- <input type="hidden" id="conveyance" value="NA">--> | |||
<!-- <input type="hidden" id="customTimeout">--> | |||
<!-- <input type="hidden" id="abortTimeout">--> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
<div id="credentials" class="row"> | |||
</div> | |||
<div id="snack-bar" class="mdl-js-snackbar mdl-snackbar"> | |||
<div class="mdl-snackbar__text"></div> | |||
<button class="mdl-snackbar__action" type="button"></button> | |||
</div> | |||
</div> | |||
<!-- toast--> | |||
<div class="toast-container position-fixed top-50 start-50 translate-middle p-3" > | |||
<div id="toast" class="toast" role="alert" aria-live="assertive" aria-atomic="true" data-bs-delay="5000"> | |||
<div class="toast-header"> | |||
Message | |||
</div> | |||
<div id="toast-body" class="toast-body"> | |||
Toast Body | |||
</div> | |||
</div> | |||
</div> | |||
<!-- JavaScript Bundle with Popper --> | |||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-u1OknCvxWvY5kfmNBILK2hRnQC3Pr17a+RTT6rIHI7NnikvbZlHgTPOOmMi466C8" crossorigin="anonymous"></script> | |||
<script src="js/webauthn.js"></script> | |||
<script> | |||
// override fetchCredentials in "js/webauthn.js" | |||
function fetchCredentials(){ | |||
} | |||
</script> | |||
</body> | |||
</html> |
<!DOCTYPE html> | |||
<html lang="en"> | |||
<head> | |||
<meta charset="UTF-8"> | |||
<title>Profile</title> | |||
<!-- CSS only --> | |||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" | |||
integrity="sha384-iYQeCzEYFbKjA/T2uDLTpkwGzCiq6soy8tYaI1GyVh/UjpbCx/TYkiZhlZB6+fzT" crossorigin="anonymous"> | |||
</head> | |||
<body> | |||
<!--navbar--> | |||
<nav class="navbar bg-light navbar-light"> | |||
<div class="container-fluid"> | |||
<a href="#" class="navbar-brand"> | |||
<!-- <img src="img/logo1.png" alt="Taiwan Tech Logo" class="navbar-brand" style="height: 40pt">--> | |||
FIDO DEMO | |||
</a> | |||
<button class="navbar-toggler" | |||
type="button" | |||
data-bs-toggle="collapse" | |||
data-bs-target="#menu"> | |||
<span class="navbar-toggler-icon"></span> | |||
</button> | |||
<div class="collapse navbar-collapse" id="menu"> | |||
<ul class="navbar-nav"> | |||
<li class="nav-item"> | |||
<label for="switch-rk" class="nav-link">Resident Key</label> | |||
<input type="checkbox" id="switch-rk"> | |||
</li> | |||
<li class="nav-item"> | |||
<label for="switch-rr" class="nav-link">Prevent Registration</label> | |||
<input type="checkbox" id="switch-rr"> | |||
</li> | |||
<li class="nav-item"> | |||
<label for="switch-uvm" class="nav-link">User Verification Method</label> | |||
<input type="checkbox" id="switch-uvm"> | |||
</li> | |||
<li class="nav-item"> | |||
<label for="attachment" class="nav-link">Attachment Type</label> | |||
<select id="attachment" class="attachment"> | |||
<option value="none">N/A</option> | |||
<option value="cross-platform">Cross-Platform</option> | |||
<option value="platform">Platform</option> | |||
</select> | |||
</li> | |||
<li class="nav-item"> | |||
<label for="userVerification" class="nav-link">User Verification</label> | |||
<select id="userVerification" class="attachment"> | |||
<option value="none">None</option> | |||
<option value="required">Required</option> | |||
<option value="preferred">Preferred</option> | |||
<option value="discouraged">Discouraged</option> | |||
</select> | |||
</li> | |||
<li class="nav-item"> | |||
<label for="conveyance" class="nav-link">Conveyance Preference</label> | |||
<select id="conveyance" class="attachment"> | |||
<option value="NA">N/A</option> | |||
<option value="none">None</option> | |||
<option value="indirect">Indirect</option> | |||
<option value="direct">Direct</option> | |||
</select> | |||
</li> | |||
<li class="nav-item"> | |||
<label class="nav-link" for="customTimeout">Timeout (milliseconds)</label> | |||
<input type="number" id="customTimeout"> | |||
</li> | |||
<li class="nav-item"> | |||
<label class="nav-link" for="abortTimeout">AbortTimeout (milliseconds)</label> | |||
<input type="number" id="abortTimeout"> | |||
</li> | |||
</ul> | |||
</div> | |||
</div> | |||
</nav> | |||
<!-- body--> | |||
<div class="container"> | |||
<div class="row justify-content-center"> | |||
<div class="col-4" style="width: 400px; padding-top: 150px;"> | |||
<div class="card shadow-lg p-5" style="border: 0px;"> | |||
<div class="row justify-content-start"> | |||
<h2> | |||
Welcome! | |||
</h2> | |||
<hr> | |||
<img src="img/avatar1.jpg" alt="Avatar1"> | |||
<h3 class="p-3">Name: Josh Ji</h3> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
<!-- JavaScript Bundle with Popper --> | |||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" | |||
integrity="sha384-u1OknCvxWvY5kfmNBILK2hRnQC3Pr17a+RTT6rIHI7NnikvbZlHgTPOOmMi466C8" | |||
crossorigin="anonymous"></script> | |||
</body> | |||
</html> | |||
\ No newline at end of file |