From sample provided here I would like to login using a specific login/password embedded in my javascript code without any login dialog (login will be transparent to user). Any idea how to customized the JS code from this sample to achieve this objective ?
Â
sample using login dialog (from ArcGIS API for JavaScript Sandbox 😞
Â
<script>
 var map, cred = "esri_jsapi_id_manager_data"; // cookie/local storage name
Â
 require([
   "dojo/_base/unload",
   "dojo/cookie",
   "dojo/json",
   "dojo/parser", "esri/config", "esri/IdentityManager", "esri/layers/FeatureLayer",
   "esri/map",
   "dijit/layout/BorderContainer",
   "dijit/layout/ContentPane",
   "dojo/domReady!",
 ], function (baseUnload,
   cookie,
   JSON,
   parser, esriConfig, esriId, FeatureLayer,