This repository has been archived by the owner on Apr 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add new demo page to handle issuance initiate request
Signed-off-by: Talwinder Kaur <[email protected]>
- Loading branch information
Talwinder kaur
committed
Sep 15, 2022
1 parent
9e98097
commit a30823a
Showing
2 changed files
with
130 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Demo Open ID For VC</title> | ||
<script type="text/javascript"> | ||
function setIssuerURL(action) { | ||
document.getElementById("issuerURL").value = | ||
location.protocol + "//" + location.host; | ||
} | ||
</script> | ||
</head> | ||
<body> | ||
|
||
<h1>OPENID4VC DEMO</h1> | ||
<form action="/issuer/oidc/issuance/v2" id="oidc-issuance-form" method="POST"> | ||
<input type="hidden" id="issuerURL" name="issuerURL" value="" /> | ||
<table style="border-spacing: 10px"> | ||
<tr> | ||
<td><label>Wallet Initiate Issuance URL</label></td> | ||
<td> | ||
<input | ||
type="text" | ||
id="walletURL" | ||
name="walletInitIssuanceURL" | ||
value="https://wallet.trustbloc.local:8091/oidc/initiate" | ||
size="50" | ||
/> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td><label>Credential Types</label></td> | ||
<td> | ||
<input | ||
type="text" | ||
id="credentialTypes" | ||
name="credentialTypes" | ||
value="https://w3id.org/citizenship/v1" | ||
size="50" | ||
/> | ||
</td> | ||
</tr> | ||
|
||
</table> | ||
<input | ||
type="submit" | ||
id="openid-issuance" | ||
value="Demo" | ||
onclick="javascript:setIssuerURL()" | ||
/> | ||
</form> | ||
|
||
</head> | ||
<div style="position:absolute; left:800px; top:100px;"> <button class="button qrCodeButton">Scan Your QR Code</button></div> | ||
|
||
</body> | ||
<style> | ||
.button { | ||
border: none; | ||
color: white; | ||
padding: 15px 32px; | ||
text-align: center; | ||
text-decoration: none; | ||
display: inline-block; | ||
font-size: 16px; | ||
margin: 4px 2px; | ||
cursor: pointer; | ||
} | ||
.qrCodeButton {background-color: #008CBA;} | ||
</style> | ||
</html> |