How to apply Edits On Passward protected feature layer

205
4
07-31-2019 10:42 PM
NadirHussain
Occasional Contributor II

Feat All,

My featureservice is passwor dprotected.how can i apply the applyedits function of feature layer on this layer.

Please help

Thanks.

0 Kudos
4 Replies
Egge-JanPollé1
MVP Regular Contributor

Hi Nadir Hussain,

You will have to get access to your feature layer using OAuthentication first:

Access ArcGIS Online items using OAuthentication | ArcGIS API for JavaScript 4.12 

HTH,

Egge-Jan

0 Kudos
NadirHussain
Occasional Contributor II

I am using 3.29 arcgis api and I don't have any portal

I am making my custom app by the help of arcgis java script api 3.29

0 Kudos
Egge-JanPollé1
MVP Regular Contributor

Maybe you should have a look here: OAuth Basic | ArcGIS API for JavaScript 3.29 

0 Kudos
Noah-Sager
Esri Regular Contributor

I'd recommend reviewing our guide page about working with secure resources:

https://developers.arcgis.com/javascript/3/jshelp/ags_secureservices.html

And if that doesn't help, consider using the resource proxy:

https://developers.arcgis.com/javascript/3/jshelp/ags_proxy.html

0 Kudos