ArcGIS API for JavaScript: EPL/EPL_Secure_Service (MapServer)
Built using the ArcGIS API for JavaScript