Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IOPID-2322] - CieID errors #426

Merged
merged 6 commits into from
Oct 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions assets/html/error.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<div>Error</div>
</body>
</html>
16 changes: 14 additions & 2 deletions assets/html/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@
["28", "28 - Operazione annullata"],
["29", "29 - Identità non erogata"],
["1001", "1001 - Cittadino minore di 14 anni"],
["1002", "1002 - Utente con identità bloccata da ioapp.it"]
["1002", "1002 - Utente con identità bloccata da ioapp.it"],
["CIEID_OPERATION_CANCEL", "CIEID_OPERATION_CANCEL"]
];

const simulateSpidError = () => {
Expand All @@ -76,7 +77,6 @@
const container = document.getElementById("select_container");
container.innerHTML = `<div>${select}</div>`;
}

</script>
<meta charset="UTF-8">
<title>Welcome in IO</title>
Expand All @@ -102,6 +102,18 @@ <h1 style="font-size: 50px;"><a href="https://github.com/pagopa/io-dev-api-serve
style="padding: 16px; width: 350px; font-size: 30px; color: white; background-color: #e67f00; text-decoration: none;">
SIMULATE LOGIN ERROR</div>
</div>
<div style="margin-top: 40px; ">
<a
href="iologincie:https://idserver.servizicie.interno.gov.it/cieiderror?cieid_error_message=Operazione_annullata_dall'utente"
style="padding: 16px; width: 350px; font-size: 30px; color: white; background-color: #e67f00; text-decoration: none;">
SIMULATE CIE ID DEEP LINK ERROR (operation cancelled)</a>
</div>
<div style="margin-top: 40px; ">
<a
href="iologincie:https://idserver.servizicie.interno.gov.it/cieiderror?cieid_error_message=Operazione_non_valida"
style="padding: 16px; width: 350px; font-size: 30px; color: white; background-color: #e67f00; text-decoration: none;">
SIMULATE CIE ID DEEP LINK ERROR (invalid operation)</a>
</div>
</div>
</div>
</div>
Expand Down
4 changes: 4 additions & 0 deletions src/routers/public.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ addHandler(publicRouter, "get", "/idp-login", (req, res) => {
sendFileFromRootPath("assets/html/login.html", res);
});

addHandler(publicRouter, "get", "/error.html", (req, res) => {
sendFileFromRootPath("assets/html/error.html", res);
});

addHandler(publicRouter, "get", WALLET_ONBOARDING_PATH, (req, res) => {
sendFileFromRootPath("assets/wallet/wallet_onboarding.html", res);
});
Expand Down
Loading