utente.rgm

Avoid login popup when showing FeatureLayer

Discussion created by utente.rgm on May 2, 2017

Hi everyone,

I want to avoid the popup login (username and password) when I try to show a FeatureLayer from client side (javascript).

 

You can see the popup in the screenshot attached on this post.

What I've accomplished so far:

- Created a FeatureLayer from ArcMap Desktop and published it on my Organization Rest Services. I got a link for retrieve that. It is hosted on ArcgisOnline.

- Connected my Web Application to my esri online server and got a token (through client and secret id ) to access this feature layer

- On client side, in Javascript, I created a FeatureLayer from the complete uri (FeatureLayer Uri + token), and added this layer to the map showed by the MapView item. But surprisingly to me, I got a popup to login with my ArcgisOnline credentials.

 

It is possible to simply avoid the login popup? Why is not "enough"  to attach a token (which, in theory, has to give me access for that FeatureLayer published on my organization) to the FeatureLayer rest uri?

 

Thanks in advance

 

 

popup

Outcomes