ArcGIS Runtime SDK for WPF - Library Reference
IdentityManager Class Members
See Also  Properties  Methods 
ESRI.ArcGIS.Client Namespace : IdentityManager Class


The following tables list the members exposed by IdentityManager.

Public Properties

 NameDescription
public PropertyChallengeMethodGets or sets the method that will challenge the user in order to get a valid credential object. To activate the IdentityManager, you have to set a challenge method. To deactivate the IdentityManager, you have to set a null challenge method (in this case, the stack of waiting credentials is reset).  
public PropertyChallengeMethodExGets or sets the method that will challenge the user in order to get a valid credential object. To activate the IdentityManager, you have to provide a challenge method by setting either ChallengeMethod or ChallengeMethodEx. To deactivate the IdentityManager, you have to set a null challenge method (in this case, the stack of waiting credentials is reset).  
public PropertyCredentialsGets the credentials registered by the identity manager.  
public Propertystatic (Shared in Visual Basic)CurrentGets the single IdentityManager instance. This is the only way to get an IdentifyManager instance.  
public PropertyDefaultRefererGets or sets the default referer used by default for all requests going through the IdentityManager.  
public PropertyEnabledGets or set a value indicating whether the IdentityManager is enabled.  
public PropertyServerInfosGets the registered servers.  
public PropertyTokenGenerationRefererGets or sets the default referer used to generate tokens.  
public PropertyTokenValidityGets or sets the default suggested lifetime of the token in minutes. This default value can be overridden for a specific credential by setting IdentityManager.GenerateTokenOptions.TokenValidity.  
Top

Public Methods

 NameDescription
public MethodAddCredentialAdds a new IdentityManager.Credential the IdentityManager will use for accessing the resources.  
public MethodFindCredentialOverloaded. Returns the token credential for the resource identified by the specified url. Optionally you can provide an user name to find credentials for a specific user.  
public MethodFindServerInfoReturns information about the server that is hosting the specified url.  
public MethodGenerateCredentialAsyncOverloaded. Generates a token credential object asynchronously. You need to provide the service URL, the username and the password. This is a helper method typically called by the UI challenging the user.  
public MethodGenerateCredentialTaskAsyncOverloaded. Generates a token credential object asynchronously using a task object. You need to provide the service URL, the username and the password. This is a helper method typically called by the UI challenging the user.  
public MethodGetCredentialAsyncOverloaded. Returns a Credential object that can be used to access the secured resource identified by the input url. If required the user will be challenged for a username and password which is used to generate a token. The IdentityManager sets up a timer to update the Credential object with a new token prior to the expiration time. This method is typically called internally when a request fails due to an "invalid credentials" error.  
public MethodGetCredentialTaskAsyncOverloaded. Returns a Credential object that can be used to access the secured resource identified by the input url. If required the user will be challenged for a username and password which is used to generate a token. The IdentityManager sets up a timer to update the Credential object with a new token prior to the expiration time. This method is typically called internally when a request fails due to an "invalid credentials" error.  
public MethodRegisterServersRegister secure servers and the token endpoints. The Identity Manager makes its best guess to determine the location of the secure server and token endpoint so in most cases calling registerServers is not necessary. However if the location of your server or token endpoint is non-standard use this method to register the location. Additionaly if portal uses the OAuth authentication, it neeeds to be registered by this method.  
public MethodRemoveCredentialRemoves an existing credential so the challenge method will be called the next time an access to the resources is needed.  
Top

See Also

© ESRI, Inc. All Rights Reserved.