ArcGIS Runtime SDK for WPF - Library Reference
GetCredentialAsync Method
See Also 
ESRI.ArcGIS.Client Namespace > IdentityManager Class : GetCredentialAsync Method

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.

Overload List

OverloadDescription
GetCredentialAsync(String,Boolean,Action<Credential,Exception>,GenerateTokenOptions)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.  
GetCredentialAsync(CredentialRequestInfos,Boolean,Action<Credential,Exception>,GenerateTokenOptions)Returns a Credential object of the specified type (credentialRequestInfos.AuthenticationType) that can be used to access the secured resource identified by the input url (credentialRequestInfos.ServiceRestEndPoint). If required, the challenge method will be called and should return the expected credential object. If case of Token AuthenticationType, the user is typically challenged for a username and password which are used to generate a token. Then 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.  

Requirements

Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7, Windows 8

See Also

© ESRI, Inc. All Rights Reserved.