Skip to content

Commit e9bd82d

Browse files
1396 - OAuth Spike (#252)
* updated README for ArcGIS OAuth * using other readme instead
1 parent 6215665 commit e9bd82d

File tree

1 file changed

+28
-4
lines changed

1 file changed

+28
-4
lines changed

plugins/arcgis/README.md

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Build with arcgis plugin
2+
> This plugin allows for MAGE observation data to be passed to an Arcgis feature service. Follow the instructions in the root README.
23
3-
This plugin allows for MAGE observation data to be passed to an Arcgis feature service.
4-
Follow the instructions in the root README. After completing the web-app package install and build in the 'Building from source' section:
4+
## Build ArcGIS plugin
5+
- After completing the web-app package install and build in the 'Building from source' section:
56

6-
Build arcgis plugin:
77
```bash
88
cd plugins/arcgis/service
99
npm ci
@@ -17,4 +17,28 @@ npm link ../../../web-app # **IMPORTANT** see root README
1717
npm run build
1818
```
1919

20-
Continue to install dependencies in the `instance` package as instructed in the root README.
20+
- Continue to install dependencies in the `instance` package as instructed in the root README.
21+
22+
## Setting up OAuth for Feature Layers
23+
24+
### [ArcGIS](`https://arcgis.geointnext.com/arcgis/home/content.html`) Website
25+
- *Content* -> *New Item (button)* -> *Developer Credentials*
26+
+ *Redirect URLs*
27+
- `https://{mage-server-url}@ngageoint/mage.arcgis.service/oauth/authenticate`
28+
+ Mage Server URL example: `magedevd.geointnext.com/plugins/`
29+
+ *Application Environment*: can be left as *Multiple*
30+
+ *URL*: optional
31+
- After creating the new OAuth *app*/credentials
32+
+ Write down ***Client ID***
33+
- *Content* -> any *Feature Layer*
34+
+ Write down ***URL*** (bottom-right)
35+
36+
### Mage ***Admin*** (shield icon)
37+
- ArcGIS *tab* -> *Feature Layers* -> *Add Feature Service*
38+
+ *URL*: copied from *Feature Layer* above
39+
+ *Authentication*: *OAuth*
40+
- *Client Id*: copied from *OAuth Client Id* above
41+
+ Click *Create Feature*
42+
- You will know it works if it redirects:
43+
+ *Request for Permission* pop-up with the new OAuth you just created.
44+
+ click *Allow* -> it will redirect *back* to the Mage server

0 commit comments

Comments
 (0)