From 23997c5946c14a301868dabbbe43431227234adb Mon Sep 17 00:00:00 2001 From: Stefan Charsley Date: Wed, 17 Jan 2024 07:31:10 +0000 Subject: [PATCH] fix: add missing opening html tags --- docs/README.md | 6 ++++++ lib/helpers/defaults.js | 6 ++++++ lib/response_modes/form_post.js | 1 + lib/response_modes/web_message.js | 1 + 4 files changed, 14 insertions(+) diff --git a/docs/README.md b/docs/README.md index 5a91929fd..7b53545d2 100644 --- a/docs/README.md +++ b/docs/README.md @@ -979,6 +979,7 @@ async function successSource(ctx) { clientId, clientName, clientUri, initiateLoginUri, logoUri, policyUri, tosUri, } = ctx.oidc.client; ctx.body = ` + Sign-in Success @@ -1010,6 +1011,7 @@ async function userCodeConfirmSource(ctx, form, client, deviceInfo, userCode) { clientId, clientName, clientUri, logoUri, policyUri, tosUri, } = ctx.oidc.client; ctx.body = ` + Device Login Confirmation @@ -1062,6 +1064,7 @@ async function userCodeInputSource(ctx, form, out, err) { msg = '

Enter the code displayed on your device

'; } ctx.body = ` + Sign-in @@ -1822,6 +1825,7 @@ async function logoutSource(ctx, form) { // @param form - form source (id="op.logoutForm") to be embedded in the page and submitted by // the End-User ctx.body = ` + Logout Request @@ -1852,6 +1856,7 @@ async function postLogoutSuccessSource(ctx) { } = ctx.oidc.client || {}; // client is defined if the user chose to stay logged in with the OP const display = clientName || clientId; ctx.body = ` + Sign-out Success @@ -2732,6 +2737,7 @@ _**default value**_: async function renderError(ctx, out, error) { ctx.type = 'html'; ctx.body = ` + oops! something went wrong diff --git a/lib/helpers/defaults.js b/lib/helpers/defaults.js index d4e8b5a45..ee09fae83 100644 --- a/lib/helpers/defaults.js +++ b/lib/helpers/defaults.js @@ -78,6 +78,7 @@ async function userCodeInputSource(ctx, form, out, err) { msg = '

Enter the code displayed on your device

'; } ctx.body = ` + @@ -114,6 +115,7 @@ async function userCodeConfirmSource(ctx, form, client, deviceInfo, userCode) { clientId, clientName, clientUri, logoUri, policyUri, tosUri, } = ctx.oidc.client; ctx.body = ` + @@ -151,6 +153,7 @@ async function successSource(ctx) { clientId, clientName, clientUri, initiateLoginUri, logoUri, policyUri, tosUri, } = ctx.oidc.client; ctx.body = ` + @@ -339,6 +342,7 @@ async function postLogoutSuccessSource(ctx) { } = ctx.oidc.client || {}; // client is defined if the user chose to stay logged in with the OP const display = clientName || clientId; ctx.body = ` + @@ -363,6 +367,7 @@ async function logoutSource(ctx, form) { // the End-User shouldChange('features.rpInitiatedLogout.logoutSource', 'customize the look of the logout page'); ctx.body = ` + @@ -387,6 +392,7 @@ async function renderError(ctx, out, error) { shouldChange('renderError', 'customize the look of the error page'); ctx.type = 'html'; ctx.body = ` + diff --git a/lib/response_modes/form_post.js b/lib/response_modes/form_post.js index b875191d6..b0e22f393 100644 --- a/lib/response_modes/form_post.js +++ b/lib/response_modes/form_post.js @@ -15,6 +15,7 @@ export default function formPost(ctx, action, inputs) { .join('\n'); ctx.body = ` + Submitting Callback diff --git a/lib/response_modes/web_message.js b/lib/response_modes/web_message.js index 5277e8bc8..b27a0a2b7 100644 --- a/lib/response_modes/web_message.js +++ b/lib/response_modes/web_message.js @@ -25,6 +25,7 @@ export default function webMessage(ctx, redirectUri, response) { }, { json: true, isScriptContext: true }); ctx.body = ` + Web Message Response