Skip to content

Commit

Permalink
fix: #995 and #1006, issues with redirect urls
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickarlt committed Sep 1, 2022
1 parent 9227c4e commit f03ed13
Show file tree
Hide file tree
Showing 6 changed files with 332 additions and 227 deletions.
42 changes: 23 additions & 19 deletions demos/oauth2-browser/authenticate.html
Original file line number Diff line number Diff line change
@@ -1,21 +1,25 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>ArcGIS Rest JS OAuth redirect</title>
</head>
<body>
<script src="@esri/arcgis-rest-request/dist/bundled/request.umd.js"></script>
<script src="config.js"></script>
<script>
let opts = {
clientId: config.clientId,
popup: true,
}
if (config.portal) {
opts.portal = config.portal
}
arcgisRest.ArcGISIdentityManager.completeOAuth2(opts);
</script>
</body>
</html>

<head>
<meta charset="utf-8">
<title>ArcGIS Rest JS OAuth redirect</title>
</head>

<body>
<script src="@esri/arcgis-rest-request/dist/bundled/request.umd.js"></script>
<script src="config.js"></script>
<script>
let opts = {
clientId: config.clientId,
redirectUri: config.popupRedirectUri,
popup: true,
}
if (config.portal) {
opts.portal = config.portal
}
arcgisRest.ArcGISIdentityManager.completeOAuth2(opts);
</script>
</body>

</html>
Loading

0 comments on commit f03ed13

Please sign in to comment.