My goal is to create an application where services can only be accessed by those with certain permissions, much akin to ArcGIS Online web-maps, however I would like it so that when a user pings the URL where the map services is being consumed, that a log-in box appears that references ArcGIS Server?
Hi Geoffrey,
In ArcGIS for Server you can secure services such that they are authorised to -
The services can be configured to enable/disable the capabilities and operations they expose.
Users can be authenticated using token authentication, or integrated Windows authentication, if a Web Adaptor is being used in the site configuration.
If using token authentication APIs like the javascript API have an IdentityManager class that wlll provide a login dialog for users to provide their credentials, which in turn acquires a token from ArcGIS for Server, which is then supplied when accessing secured services.
See the following links for more information -
https://developers.arcgis.com/javascript/jsapi/identitymanager.html
Cheers,
Todd.