AnsweredAssumed Answered

Story Map Proxy Configuration ?

Question asked by Mayur_Dodiya on May 30, 2018

Hello All,

 

I created story maps journal using Portal for ArcGIS template. I downloaded the story map journal template from github, I changed my AppID in index.html page and deployed on my web server. It is working fine with asking users to put credentials with login dialog.

 

I Downloaded Resource Proxy Code from github and Hosted Resource code as DotNet in my own web server machine here https://webserver.com/DotNet/proxy.ashx

 

Now, I want to configure proxy for Story map in Config.js file so that users doesn't have to put credentials every time. I have 5 story map in category and each time you open story map it is asking for credentials and its annoying to users.

 

I have shared my web maps, apps, and ArcGIS server Services to Organization

 

Below is details :

 

I created story Map using Portal template > Build Story > Story Map Journal on machine : https://aglobe.portal.com/geoportal (Portal for ArcGIS 10.5.1)

 

I downloaded Story Map Journal template and deployed here on my own web server machine  : https://webserver.com/mystory

 

Proxy deployed : https://webserver.com/DotNet/proxy.ashx

 

ArcGIS server machine here : https://geoserver.com/gisserver (Highly available ArcGIS Server federated with Portal using load balancer URL)

 

Now. in Config.js file of Story Map journal template what should I add ? 

 

PROXY_RULES: [

// ESRI default Proxy URLs
// {
// urlPrefix: "http://services.arcgis.com/",
// proxyUrl: "http://myserver.domain.com/DotNet/proxy.ashx"
// }

What should I put here I tried below but still asking for credentials
{
urlPrefix: "https://aglobe.portal.com",
proxyUrl: "https://webserver.com/DotNet/proxy.ashx"
}
],

 

And then at the end of Config.js file another proxy

 //My portal URL

DEFAULT_SHARING_URL: "//aglobe.portal.com/geoportal/sharing/rest/content/items", 

//DEFAULT_PROXY_URL: "//www.arcgis.com/sharing/proxy"

What should I add here I tried below :
DEFAULT_PROXY_URL: "//aglobe.portal.com/geoportal/sharing/proxy",

 

Now, proxy.config file I put below code :

 

<serverUrl
url="https://aglobe.portal.com"

username="my user name to Portal"

password="my password to Portal"
matchAll="true"/>

 

THANKS!

PLEASE HELP!!!!!!!!!!!!!

Outcomes