diff --git a/package.json b/package.json index cdc2669..71db064 100644 --- a/package.json +++ b/package.json @@ -115,6 +115,7 @@ "@esri/arcgis-rest-portal": "^2.6.1", "arcgis-node-util": "^1.4.0", "copy-paste": "^1.3.0", - "json-stringify-pretty-compact": "^2.0.0" + "json-stringify-pretty-compact": "^2.0.0", + "open": "^6.4.0" } } diff --git a/src/lib/ArcGISTreeProvider.ts b/src/lib/ArcGISTreeProvider.ts index c883d9d..d6612d4 100644 --- a/src/lib/ArcGISTreeProvider.ts +++ b/src/lib/ArcGISTreeProvider.ts @@ -162,8 +162,10 @@ export class ArcGISTreeProvider implements TreeDataProvider { return; } + this.logger(`Creating new portal connection to url: ${url}, app: ${appId}`) const connection = new PortalConnection({portal: url, appId}); await connection.authenticate(); + this.logger(`Authentication successful. Username: ${connection.authentication.username}`) this.portals.push({ title: connection.portal,