-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
9227c4e
commit f03ed13
Showing
6 changed files
with
332 additions
and
227 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
Oops, something went wrong.