ArcGIS API for JavaScript: Custom/ACCESS_CONTROL (MapServer)
Built using the
ArcGIS API for JavaScript