Skip to content

Commit

Permalink
arcgis username and password authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
Rick Saccoccia committed Sep 25, 2024
1 parent 93c9300 commit b52e6a6
Show file tree
Hide file tree
Showing 6 changed files with 446 additions and 63 deletions.
191 changes: 189 additions & 2 deletions plugins/arcgis/service/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions plugins/arcgis/service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
},
"homepage": "https://github.com/ngageoint/mage-server#readme",
"dependencies": {
"@esri/arcgis-rest-feature-service": "^4.0.6",
"@esri/arcgis-rest-request": "^4.2.3",
"@terraformer/arcgis": "2.1.2",
"form-data": "^4.0.0"
},
Expand Down
21 changes: 21 additions & 0 deletions plugins/arcgis/service/src/ArcGISConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ export interface FeatureServiceConfig {
*/
token?: string

/**
* Username and password for ArcGIS authentication
*/
auth?: ArcGISAuthConfig

/**
* Create layers that don't exist
*/
Expand Down Expand Up @@ -72,6 +77,22 @@ export interface FeatureLayerConfig {

}

/**
* Contains username and password for ArcGIS server authentication.
*/
export interface ArcGISAuthConfig {

/**
* The username for authentication.
*/
username: string

/**
* The password for authentication.
*/
password: string
}

/**
* Attribute configurations
*/
Expand Down
Loading

0 comments on commit b52e6a6

Please sign in to comment.