POST
|
Thank you for the response. After some downtime i'm back to figuring out this task. To better understand the process of setting up the proxy i'm now trying to follow the routing and directions example. (Directions widget | ArcGIS API for JavaScript 4.6 ) If set up an file on an IIS server. Now im not sure which app id and secret i have to use. Building an application in arc gis for developers returns me a clientId and a clientSecret. Adding a service proxy there gives me the link in the picture below. Im afraid thats not the service the widget uses. So my question is what client secret and id to use? Or should i somehow change the service used by the widget? Code below. Best regards Config file: <?xml version="1.0" encoding="utf-8" ?>
<ProxyConfig allowedReferers="*"
mustMatch="false">
<serverUrls>
<serverUrl url="http://services.arcgisonline.com"
matchAll="true"/>
<serverUrl url="route.arcgis.com"
clientId="***"
clientSecret="***"
matchAll="true"/>
</serverUrls>
</ProxyConfig> Example Javascript: <script>
require([
"esri/Map",
"esri/views/MapView",
"esri/widgets/Directions",
"esri/core/urlUtils",
"dojo/domReady!"
], function(
Map,
MapView,
Directions,
urlUtils) {
// Proxy the route requests to avoid prompt for log in
urlUtils.addProxyRule({
urlPrefix: "route.arcgis.com",
proxyUrl: "/DotNet/proxy.ashx"
});
var map = new Map({
basemap: "topo-vector"
});
var view = new MapView({
scale: 123456789,
container: "viewDiv",
map: map
});
var directionsWidget = new Directions({
view: view
});
// Add the Directions widget to the top right corner of the view
view.ui.add(directionsWidget, {
position: "top-right"
});
});
</script>
... View more
01-16-2018
09:59 AM
|
0
|
1
|
534
|
POST
|
Hi, i got some questions regarding automated user login for non publicly shared content in agol. To be more precise the users should be able to load and edit a feature layer (portable item) hosted on arc gis online without having to fill in their username and password for the account. After reading many guides and threads in this forum it seems to me as if its not possible to do this with app login. Limitations of App Login App login comes with several built-in limitations: Tokens obtained by applications can only read public content and services. Although you cannot use an App login with private content, if your goal is to distribute or sell an app to organizations without ArcGIS Online (no named users), you may control access to your content by using your own login mechanism (I.e. Identity) to the app. Tokens obtained by applications may read premium content and services hosted by Esri and consume credits on behalf of the application organization. Applications cannot create, update, share, modify, or delete items (layers, files, services, maps) in ArcGIS Online or Portal for ArcGIS. Applications built using app login cannot be listed in the ArcGIS Marketplace. So what is the best approach to do this? Is there for example a way to do the named user login but without the individual user having to fill out the form every time he uses the app?
... View more
11-30-2017
09:01 AM
|
0
|
7
|
849
|
POST
|
Thanks for your answer and sry for the delayed response. After reading through most of the guides i've come to the awareness that only arc gis server users are able to host custom print services. Unfortunately I am only a Agol (and desktop) User. Sry for not mentioning that before.
... View more
11-21-2017
09:59 AM
|
0
|
0
|
243
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:25 AM
|