@arcgis/portal-components 5.1.0-next.91 → 5.1.0-next.92
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<script>
|
|
5
|
+
function loadHandler() {
|
|
6
|
+
if (opener) {
|
|
7
|
+
if (location.hash) {
|
|
8
|
+
// opener.console.log("oauth callback href:", location.href);
|
|
9
|
+
if (typeof opener.require === "function" && opener.require("esri/kernel")) {
|
|
10
|
+
opener.require("esri/kernel").id.setOAuthResponseHash(location.hash);
|
|
11
|
+
} else {
|
|
12
|
+
opener.dispatchEvent(new CustomEvent("arcgis:auth:hash", { detail: location.hash }));
|
|
13
|
+
}
|
|
14
|
+
close();
|
|
15
|
+
} else if (location.search) {
|
|
16
|
+
opener.dispatchEvent(
|
|
17
|
+
new CustomEvent("arcgis:auth:location:search", {
|
|
18
|
+
detail: location.search,
|
|
19
|
+
}),
|
|
20
|
+
);
|
|
21
|
+
close();
|
|
22
|
+
}
|
|
23
|
+
} else {
|
|
24
|
+
close();
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
</script>
|
|
28
|
+
</head>
|
|
29
|
+
|
|
30
|
+
<body onload="loadHandler();"></body>
|
|
31
|
+
</html>
|