POST
|
Hello, We are trying to implement popup-less authentication, which could be used with ArcGIS Enterprise and ArcGIS Online. Customers require from us some sort of "do it once and do not worry about it later" approach, where their admin user of our app configures ArcGIS authentication once, and then each user that logs into our app does not bother about doing anything that is connected with authentication to their ArcGIS portals - it happens automatically under the hood. We tried a bunch of solutions, but none of them were perfect for customers. So, we thought about mixing .Net and JS SDK to do the authentication. Our idea is to generate a token on the backend side using App Id and App secret from customer's portals provided by them during the authentication configuration process. Then send this token to the frontend side and register it in SDK for JavaScript. I'm uncertain if it is even possible, but we tried to do a small POC for testing. On the backend, we are creating ServerInfo object that contains App Id and App secret, and then generate token using AuthenticationManager.GenerateTokenAsync(<uri to arcgis portal>, <token options>) with TokenAuthenticationType set to OAuthClientCredentials. As a result, we get a Credential object with some token and stuff inside, but without userId. Then we send that to the frontend and to use it in esriId.registerToken method. No exceptions are thrown, some requests also look to pass, but when we try to fetch basemaps for example, nothing is returned (empty array, but there are actual basemaps in the portal). We also noticed that the received token is slightly different from token received using only JS SDK (esriId.getCredential method) - it is shorter. Is it even possible to make this approach work and if yes, do you have any ideas what we are doing wrong?
... View more
03-03-2023
01:26 AM
|
0
|
0
|
252
|
POST
|
We're checking the possibillity of moving from old WPF app into web (using esri javascript API there). The problem is - we need to support all the features we already have in WPF - like offline maps (raster TPK and new vector VTPK). By offline I mean our web server will be available but ArcGIS services might not be (due to internet connection lost) and user will then switch to some of his offline (file) maps. We found a way to support TPK files. We can serve tiles from our backend (using TileCache and it's method GetTileData) and consume them using esri javascript API in the browser. We can't find a way to do the same with VTPK files... If we won't be able to deliver all the features we have in WPF we won't get a green light to move to web so we're very interested in making it possible :-).
... View more
02-27-2019
02:41 AM
|
0
|
0
|
562
|
POST
|
Hello, As far as we know VTPK file consists (mainly) of bundle files wherein PBF tiles are stored. We'd like to load specific tiles (in PBF files) from VTPK file loaded into runtime objects (knowing row, column and current zoom level). We were able to do that with raster TPK using TileCache and it's method GetTileData. We're using runtime 100.4 (.NET WPF). There seems to be no way of doing this with VectorTileCache, where VTPK can be loaded into (or from layer object having this cache - ArcGISVectorTiledLayer). Are we missing something? Maybe there is another way of accessing those vector tiles? Thanks for any help.
... View more
02-26-2019
04:12 AM
|
0
|
2
|
748
|
Online Status |
Offline
|
Date Last Visited |
11-28-2023
03:31 PM
|