fix: Web SSO
parent
73038ad5d1
commit
f903d54d52
@ -1,14 +1,13 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<head>
|
<title>Authentication complete</title>
|
||||||
<title>Authentication complete</title>
|
<p>Authentication is complete. If this does not happen automatically, please close the window.</p>
|
||||||
</head>
|
<script>
|
||||||
<body>
|
if (window.opener) {
|
||||||
<p>Authentication is complete. If this does not happen automatically, please
|
|
||||||
close the window.
|
|
||||||
<script>
|
|
||||||
window.opener.postMessage({
|
window.opener.postMessage({
|
||||||
'flutter-web-auth-2': window.location.href
|
'flutter-web-auth-2': window.location.href
|
||||||
}, window.location.origin);
|
}, window.location.origin);
|
||||||
window.close();
|
} else {
|
||||||
</script>
|
localStorage.setItem('flutter-web-auth-2', window.location.href);
|
||||||
</body>
|
}
|
||||||
|
window.close();
|
||||||
|
</script>
|
Loading…
Reference in New Issue