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 8a9f5fa
Showing
2 changed files
with
113 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
53 changes: 53 additions & 0 deletions
53
test/mock/adapter/templates/issuer/openid-initiate-request.html
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,53 @@ | ||
<!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="/issuance/initiate" 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> | ||
</body> | ||
</html> |