diff --git a/adapters/oidc/js/static/3p-cookies-step1.html b/adapters/oidc/js/static/3p-cookies-step1.html index 606d7b88d8..7a66f3ab78 100644 --- a/adapters/oidc/js/static/3p-cookies-step1.html +++ b/adapters/oidc/js/static/3p-cookies-step1.html @@ -1,27 +1,31 @@ - - - - - - \ No newline at end of file + + + + + + + diff --git a/adapters/oidc/js/static/3p-cookies-step2.html b/adapters/oidc/js/static/3p-cookies-step2.html index 8cd4b2ab67..36591b59b6 100644 --- a/adapters/oidc/js/static/3p-cookies-step2.html +++ b/adapters/oidc/js/static/3p-cookies-step2.html @@ -1,32 +1,18 @@ - - - - - - \ No newline at end of file + + + + + + + diff --git a/adapters/oidc/js/static/login-status-iframe.html b/adapters/oidc/js/static/login-status-iframe.html index b0e5e46450..f1abfc2e41 100755 --- a/adapters/oidc/js/static/login-status-iframe.html +++ b/adapters/oidc/js/static/login-status-iframe.html @@ -1,127 +1,125 @@ - - - - - + if (!("hasStorageAccess" in document)) { + doStateCheck(); + return; + } + + document.hasStorageAccess().then(function (hasAccess) { + if (!hasAccess) { + event.source.postMessage("error"); + return; + } + + doStateCheck(); + }); + } + + window.addEventListener("message", receiveMessage, false); + +