View on GitHub

Connect to an IWA secured Portal and search for maps.

Image of authenticate with integrated windows authentication

Use case

Your organization might use Integrated Windows Authentication (IWA) to secure ArcGIS Enterprise. This can be useful because the same credentials used to log into your work computer and network can be used to authenticate with ArcGIS. IWA is built into Microsoft Internet Information Server (IIS) and works well for intranet applications but isn’t always practical for internet apps.

How to use the sample

  1. Enter the URL to your IWA-secured portal.
  2. Click the connect button to search for web maps stored on the portal.
  3. You will be prompted for a user name, and password.
  4. If you authenticate successfully, portal item results will display in the list.
  5. Select a web map item to display it in the map view.

How it works

  1. The AuthenticationManager object is configured with a challenge handler that will prompt for a Windows login (username and password) if a secure resource is encountered.
  2. When a search for portal items is performed against an IWA-secured portal, the Authenticator creates a NetworkCredential from the information entered by the user.
  3. If the user authenticates, the search returns a list of web maps (PortalItem) and the user can select one to display as a Map.

Relevant API

  • ArcGISEnvironment
  • AuthenticationManager
  • Authenticator
  • Portal

About the data

This sample searches for web map portal items on a secure portal. To successfully run the sample, you need:

  • Access to a portal secured with Integrated Windows Authentication that contains one or more web map items.
  • A login that grants you access to the portal.

Additional information

More information about IWA and its use with ArcGIS can be found at the following links:

Tags

authentication, security, Windows