Skip to content

Latest commit

 

History

History
39 lines (23 loc) · 1.82 KB

File metadata and controls

39 lines (23 loc) · 1.82 KB

Certificate authentication with PKI

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

NOTE: You must provide your own ArcGIS Portal with PKI authentication configured.

Provide a URL to a PKI-enabled server, then use the certificate selection UI to select an appropriate certificate for that server.

How it works

  1. Create the X.509 certificate store, referring to the user's certificates.
  2. Open the certificate store in read-only mode.
  3. Find all certificates that are currently valid.
  4. Display a content dialog, allowing the user to select a certificate.
  5. Create the ArcGIS Runtime credential with the chosen certificate.
  6. [Workaround] Use Windows.Web.Http.HttpClient to force certificate selection to work.
  7. Create the Portal, explicitly passing in the credential that was created.

Relevant API

  • CertificateCredential

Additional information

ArcGIS Enterprise requires special configuration to enable support for PKI. PKI authentication can be set up to work with accounts managed by Windows Active Directory or LDAP.

NOTE: UWP apps must declare the following capabilities in their manifest: Private Networks (Client & Server), Shared User Certificates.

Tags

smartcard, PKI, certificate, store, X509, authentication, login, passwordless