Access secured portals using a certificate.

Use case
PKI (Public Key Infrastructure) is a certificate authentication method to secure resources without requiring users to remember passwords. Government agencies commonly issue smart cards using PKI to access computer systems.
How to use the sample
- Enter the URL to your PKI-secured portal.
- Click the connect button to search for web maps stored on the portal.
- You will be prompted to browse for a certificate and enter a password.
- If you authenticate successfully, the portal item results will be displayed in the list.
- Select a web map item to display it in the map view.
How it works
- The
AuthenticationManagerobject is configured with a challenge handler that will prompt for a PKI certificate if a secure resource is encountered. - When a search for portal items is performed against a PKI-secured portal, the
Authenticatorcreates aNetworkCredentialfrom the information entered by the user. - If the user authenticates, the search returns a list of web maps (
PortalItem) and the user can select one to display as aMap.
Relevant API
- ArcGISEnvironment
- AuthenticationManager
- Authenticator
- Portal
Additional information
ArcGIS Enterprise requires special configuration to enable support for PKI. See Using Windows Active Directory and PKI to secure access to your portal and Use LDAP and PKI to secure access to your portal in Portal for ArcGIS.
⚠ NOTE: Certificates installed on iOS are not available to user apps. Therefore, you will be prompted to browse for a certificate file when accessing PKI secured ArcGIS resources.
⚠ NOTE: Ensure that PKI certificates are available on the iOS device or storage drives, allowing you to browse for a certificate file when accessing PKI secured ArcGIS resources.
Tags
authentication, certificate, login, passwordless, PKI, smartcard, store, X509