diff --git a/web-integrations/google-secure-signals/client-server/server.js b/web-integrations/google-secure-signals/client-server/server.js index b8ddb6b..6f32122 100644 --- a/web-integrations/google-secure-signals/client-server/server.js +++ b/web-integrations/google-secure-signals/client-server/server.js @@ -37,10 +37,13 @@ app.set('view engine', 'html'); app.get('/', (req, res) => { res.render('index', { + identity: undefined, + isOptout: false, uidBaseUrl, uidJsSdkUrl, uidJsSdkName, secureSignalsSdkUrl, + secureSignalsStorageKey: process.env.UID_SECURE_SIGNALS_STORAGE_KEY, identityName, docsBaseUrl }); @@ -132,11 +135,14 @@ app.post('/login', async (req, res) => { const response = decrypt(encryptedResponse.data, uidClientSecret, nonce); if (response.status === 'optout') { - res.render('optout', { + res.render('index', { + identity: null, + isOptout: true, uidBaseUrl, uidJsSdkUrl, uidJsSdkName, secureSignalsSdkUrl, + secureSignalsStorageKey: process.env.UID_SECURE_SIGNALS_STORAGE_KEY, identityName, docsBaseUrl }); @@ -155,12 +161,14 @@ app.post('/login', async (req, res) => { docsBaseUrl }); } else { - res.render('login', { + res.render('index', { identity: response.body, + isOptout: false, uidBaseUrl, uidJsSdkUrl, uidJsSdkName, secureSignalsSdkUrl, + secureSignalsStorageKey: process.env.UID_SECURE_SIGNALS_STORAGE_KEY, identityName, docsBaseUrl }); diff --git a/web-integrations/google-secure-signals/client-server/views/index.html b/web-integrations/google-secure-signals/client-server/views/index.html index fe5ba60..307e43f 100644 --- a/web-integrations/google-secure-signals/client-server/views/index.html +++ b/web-integrations/google-secure-signals/client-server/views/index.html @@ -7,6 +7,9 @@ + + + + <%- include('intro.html'); -%> +

+ Note: This is a test-only integration environment—not for production + use. It does not perform real user authentication or generate production-level tokens. Do not + use real user data on this page. +