Select to view content in your preferred language

How to check if a layer requires a token to initialize or not

507
1
Jump to solution
11-25-2013 09:29 PM
Labels (1)
HumzaAkhtar
Deactivated User
Hello,

How can I check programatically for a Layer(Tiled, Dynamic or Feature) whether a token is required to initialize it or not. I want to know this before I initialize it.

I donot want to initialize it first and then view the error to know that I required a token for this service.

I couldnot find any property in ArcGISTiledMapServiceLayer or ArcGISDynamicMapServiceLayer which can tell me that this service is secure.
0 Kudos
1 Solution

Accepted Solutions
MichaelBranscomb
Esri Frequent Contributor
Hi,

The workflow for identifying the type of security required is to use the Identity Manager and provide a challenge delegate. In the callback, the CredentialRequestInfos will contain an AuthenticationType value (http://resources.arcgis.com/en/help/runtime-wpf/apiref/index.html?ESRI.ArcGIS.Client~ESRI.ArcGIS.Cli...

Certificate = Authentication by client certificate (PKI infrastructure)
NetworkCredential = HTTP secured service (Digest, basic or Integrated)
Token = Token secured service.

Cheers

Mike

View solution in original post

0 Kudos
1 Reply
MichaelBranscomb
Esri Frequent Contributor
Hi,

The workflow for identifying the type of security required is to use the Identity Manager and provide a challenge delegate. In the callback, the CredentialRequestInfos will contain an AuthenticationType value (http://resources.arcgis.com/en/help/runtime-wpf/apiref/index.html?ESRI.ArcGIS.Client~ESRI.ArcGIS.Cli...

Certificate = Authentication by client certificate (PKI infrastructure)
NetworkCredential = HTTP secured service (Digest, basic or Integrated)
Token = Token secured service.

Cheers

Mike
0 Kudos