This sample demonstrates how to authenticate with ArcGIS Server using ArcGIS Tokens to access a secure service. Accessing secured services requires a login that's been defined on the server.
- When you run the sample, the app will load a map that contains a layer from a secured service.
- You will be challenged for a user name and password to view that layer.
- Enter the correct user name (user1) and password (user1).
- If you authenticate successfully, the secured layer will display, otherwise the map will contain only the public layers.