Identity in the ArcGIS API for JavaScript

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 ธ.ค. 2024

ความคิดเห็น • 12

  • @JimGuitar-JJ
    @JimGuitar-JJ ปีที่แล้ว

    Great video! New to javascript and only a little experience with ArcGIS, this helped me understand what was going on so much better.

  • @keeponkeepinon76
    @keeponkeepinon76 10 หลายเดือนก่อน

    Man, you know your stuff! Wish I could function like this when writing code for my GIS applications!!!

  • @carlosarturosarmientoroyer2852
    @carlosarturosarmientoroyer2852 2 ปีที่แล้ว +1

    Thanks Rene.What is the best way to pass the credentials in code for a custom application and it can't use proxy because it is a react, angular or vue?

    • @odoenet
      @odoenet  2 ปีที่แล้ว

      If you get a token from outside your application, you can use the IdentityManager.registerToken method to register the token and what server it is from developers.arcgis.com/javascript/latest/api-reference/esri-identity-IdentityManager.html#registerToken

  • @guilhermeromeiro7491
    @guilhermeromeiro7491 2 ปีที่แล้ว +1

    I need to point to the enterprise environment, is the procedure the same?
    I tried to apply this same code with my app's id, but it returned me -> Invalid client_id
    error: 400

    • @odoenet
      @odoenet  2 ปีที่แล้ว +1

      The workflow is the same, but you need to create the application in your Enterprise portal and you can set the Portal URL in the OAuthInfo developers.arcgis.com/javascript/latest/api-reference/esri-identity-OAuthInfo.html#portalUrl

    • @guilhermeromeiro7491
      @guilhermeromeiro7491 2 ปีที่แล้ว

      @@odoenet Thanks Rene

  • @eniminisofea684
    @eniminisofea684 3 หลายเดือนก่อน

    can i apply this method for display private dashboard arcgis online?

    • @odoenet
      @odoenet  3 หลายเดือนก่อน

      That auth workflow is different and built in to dashboards. This video applies for building custom apps.

  • @OmarMarji
    @OmarMarji 2 ปีที่แล้ว

    Thanks Rene. I wasn't able to find any info on refreshing the login information. Currently once the token expires it redirects the user to the OAuth page to re-allow access. Is there a way to manage this workflow by refreshing the authentication information as long as the user is still active and making requests?

    • @odoenet
      @odoenet  2 ปีที่แล้ว +1

      Using OAuth, no. By design, they have to re-allow access to get a new token.

  • @hamzabounouidar8764
    @hamzabounouidar8764 2 ปีที่แล้ว

    Thanks Rene a lot for your video.
    However I have a question, when you have an external item referenced on your portal, the url looks like :
    [my-web-site]/portal/sharing/servers/24191ed3d23948e2ac0accf8c877a824/rest/services/SDPCONS/MYLAYER/FeatureServer
    No need for origin portal credentials (they are stored with the item), I only need authentication to my portal (target). I dont know in this case how to register token for IdentityManager. I ve tried somthing like
    const properties = {
    server: portalUrl ,
    token: user.gisToken,
    } as IdentityManagerRegisterTokenProperties;
    IdentityManager.registerToken(properties);
    but didn't work, still have the authentication form. could you help me pleaaaaaase?