Skip to content
This repository has been archived by the owner on Jun 29, 2023. It is now read-only.

Commit

Permalink
Add tags for prototype code (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
code28 committed Jun 9, 2023
1 parent e4f2060 commit 0f51bbb
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 3 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,9 @@ npm run dev
http://localhost:8081/health
```
should return Ok

## Note: Prototype Code

This repository includes code used only for a prototype version of the widget. The code is tagged with `// PROTOTYPE` comments.

Find more details about the prototype in this [proposal for a device switch](https://github.com/digitalservicebund/useid-architecture/blob/8b4e0ae9b1536f7d62f8d089b7bc135e71ceba63/research/device-switch/proposal-qr-code-based-device-switch-with-webauthn.md).
2 changes: 1 addition & 1 deletion app/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ app.set("view engine", "pug");
app.get("/", index);
app.get("/health", health);
app.get("/success", success);
app.get("/qrcode", qrcode);
app.get("/qrcode", qrcode); // PROTOTYPE LINE

module.exports = app;
4 changes: 2 additions & 2 deletions app/routes.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
const index = require("./routes/index");
const success = require("./routes/success");
const qrcode = require("./routes/qrcode");
const qrcode = require("./routes/qrcode"); // PROTOTYPE LINE
const health = require("./routes/health");

module.exports = {
index,
success,
qrcode,
qrcode, // PROTOTYPE LINE
health,
};
2 changes: 2 additions & 0 deletions app/routes/qrcode.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// PROTOTYPE FILE

const { banner, useIdAPI } = require("../shared");
const axios = require("axios");

Expand Down
2 changes: 2 additions & 0 deletions app/shared/banner.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@ const resolveBannerInfo = function (env) {
bannerHeader += "";
bannerText += "BundesIdent und echten Ausweisdokumenten.";
break;
// PROTOTYPE BLOCK BEGIN
case "webauthn":
bannerHeader += "WebAuthn";
bannerText +=
"iOS App BundesIdent Prototype, Test‑Ausweisdokumenten in Safari + Chrome.";
break;
// PROTOTYPE BLOCK END
default:
bannerHeader += "";
bannerText += "BundesIdent und echten Ausweisdokumenten.";
Expand Down

0 comments on commit 0f51bbb

Please sign in to comment.