Coder Social home page Coder Social logo

Comments (3)

gavinr-maps avatar gavinr-maps commented on June 5, 2024

Hi Arjan, thanks for logging this.

This snippet is actually old - using the JS API v3 syntx (for example, should be esri/identity/IdentityManager instead of esri/id). Could you please send a PR to update this snippet to the latest JS API? This can be found in https://github.com/Esri/arcgis-rest-js/tree/main/demos/jsapi-integration I think.

After that's updated, can you please provide an updated replication case.

from arcgis-rest-js.

gavinr-maps avatar gavinr-maps commented on June 5, 2024

Snippet (non-)issue

After further looking into this, I think that snippet is actually acceptable:

I think the Credential that is returned from findCredential or getCredential should both be able to be passed into the ArcGIS REST JS ArcGISIdentityManager.fromCredential function.

So I don't think the snippet is the issue.

Replication case

I was able to create a simple replication case for this issue in a StackBlitz:
https://stackblitz.com/edit/vitejs-vite-ikrxa2?file=src%2Fmain.ts,src%2Fstyle.css,src%2Fmap.ts&terminal=dev

image

That ^ is the original issue (I think).

Given that, I do agree with @arjanvanzutphen that owningSystemUrl should be removed (or set to optional?) here. Note that this property does not seem to be included anymore: for example compare our fetch mock vs the actual response:
https://sampleserver6.arcgisonline.com/arcgis/rest/info/?f=json

{
  "currentVersion": 10.91,
  "fullVersion": "10.9.1",
  "soapUrl": "https://sampleserver6.arcgisonline.com/arcgis/services",
  "secureSoapUrl": null,
  "authInfo": {
    "isTokenBasedSecurity": true,
    "tokenServicesUrl": "https://sampleserver6.arcgisonline.com/arcgis/tokens/",
    "shortLivedTokenValidity": 60
  }
}

from arcgis-rest-js.

gavinr-maps avatar gavinr-maps commented on June 5, 2024

Discussed with @patrickarlt, we propose to remove this line:

from arcgis-rest-js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.