Proxy Settings

1199
1
Jump to solution
10-24-2017 05:38 AM
JamesFitzgerald3
New Contributor III

Hello All,

Problem: 

 I want to share my story map to our intranet users not internet users. Our network is secure so publishing a story map publicly is out of the question. I want to customize the story map journal so users do not have to have a login to AGOL or sign up to my organization AGOL. The user just simply clicks the link and poof...story map opens. 

Steps I have completed.

1.) Downloaded Story Map Journal

2.) Downloaded Resource Proxy Code

3.) Hosted Resource code as DotNet

4.) Modified the config.js and proxy.config files

Question:

1. In the Config.js file, Does to urlPrefix need to point to arcGIS Online?

For example, https://AGOL_Organization.maps.arcgis.com/home/index.html or https://AGOL_Organization.maps.arcgis.com

2. In the proxy.config file, Does the serverUrl need to point https://AGOL_Organization.maps.arcgis.com/home/index.html or https://AGOL_Organization.maps.arcgis.com ?

3. Also in the proxy.config file, Do I need additional code and Is this the correct code for oauth2Endpoint?

THANKS!!!!!!!!!!!!!! PLEASE HELP!!!!!!!!!!!!!

0 Kudos
1 Solution

Accepted Solutions
JamesFitzgerald3
New Contributor III

Steps I have completed.

1.) Downloaded Story Map Journal

2.) Downloaded Resource Proxy Code

3.) Hosted Resource code as DotNet

   A.) Read the Readme file. I resolved my problem through hosting the DotNet within the wwwroot folder and converted into an application. 

4.) Modified the config.js and proxy.config files

   A.) I modified the config.js and proxy.config filesConfiguration of Config and Proxy

 

Question:

In the Config.js file, Does to urlPrefix need to point to arcGIS Online?

It would need to point to https://www.arcgis.com/ or https://AGOL_Organization.maps.arcgis.com if you have an organizational account. 

In the proxy.config file, Does the serverUrl need to point to https://AGOL_Organization.maps.arcgis.com?

It would need to point to https://AGOL_Organization.maps.arcgis.com Or to https://www.arcgis.com/ 

Also in the proxy.config file, Do I need additional code and Is this the correct code for oauth2Endpoint?

You do not need to use the oauth2Endpoint since it is token based.

Do I need to customize other code?

You do not need to customize any other code.

View solution in original post

0 Kudos
1 Reply
JamesFitzgerald3
New Contributor III

Steps I have completed.

1.) Downloaded Story Map Journal

2.) Downloaded Resource Proxy Code

3.) Hosted Resource code as DotNet

   A.) Read the Readme file. I resolved my problem through hosting the DotNet within the wwwroot folder and converted into an application. 

4.) Modified the config.js and proxy.config files

   A.) I modified the config.js and proxy.config filesConfiguration of Config and Proxy

 

Question:

In the Config.js file, Does to urlPrefix need to point to arcGIS Online?

It would need to point to https://www.arcgis.com/ or https://AGOL_Organization.maps.arcgis.com if you have an organizational account. 

In the proxy.config file, Does the serverUrl need to point to https://AGOL_Organization.maps.arcgis.com?

It would need to point to https://AGOL_Organization.maps.arcgis.com Or to https://www.arcgis.com/ 

Also in the proxy.config file, Do I need additional code and Is this the correct code for oauth2Endpoint?

You do not need to use the oauth2Endpoint since it is token based.

Do I need to customize other code?

You do not need to customize any other code.

0 Kudos