AnsweredAssumed Answered

How to access secure feature layer through javascript api

Question asked by kamalmtxb2b on Jul 19, 2017
Latest reply on Jun 21, 2020 by Genasys


I have created a feature service layer on my arcgis online portal and hosted it there also. Now I want to use this feature service layer on map through arcgis javascript api v3.2. Now I want to pass username and password through code and can access feature service layer as I don't want to ask credential from user.



Can you please provide me some sample code in ArcGIS API JavaScript 3.20.