Select to view content in your preferred language

Accessing webmap within iframe using Oauth

93
0
Friday
DemieKokkinou
New Contributor

Greetings community!

As part of my dissertation for my university, I have created a webmap using ArcGIS.

I have then shared this map (made it public), with the url being: https://uthess.maps.arcgis.com/apps/mapviewer/index.html?webmap=ca8720fd14ce473bb5f23260b61b5d93

My goal is to view the map in a Node-Red dashboard inside an iFrame.

When I set the iFrame’s URL to: https://uthess.maps.arcgis.com/apps/mapviewer/index.html?webmap=ca8720fd14ce473bb5f23260b61b5d93

The map is shown, but if the user is not logged in, no access is given to some of its functionalities that I need (routing, for example).

If I use the url (outside node-red), I am redirected to the university’s login page and when I login, I get the map with its full functionality.

So, I need this done programmatically so I can automate the login procedure.

Thus, I must first request an auth token using my university credentials, and then use this token along with the url, so that the map is shown in the iframe with the user logged in and all the map functionalities available.

I have been trying to utilize the https://developers.arcgis.com/ and the https://community.esri.com/, tried the older generateToken and the OAuth Token, but got no results.

Can someone aid me and guide me in the right direction please?

 

Thank you in advance

Kind Regards

Demie

0 Replies