ArcGIS API for JavaScript: TESTDatabaseAuthentication (MapServer)
Built using the ArcGIS API for JavaScript