Click or drag to resize

OAuthTokenCredential Class

The OAuthTokenCredential class represents a credential object used to access to ArcGIS resources secured with with OAuth.
Inheritance Hierarchy

Namespace:  Esri.ArcGISRuntime.Security
Assembly:  Esri.ArcGISRuntime (in Esri.ArcGISRuntime.dll) Version: 100.8.0.0
Syntax
[SerializableAttribute]
public sealed class OAuthTokenCredential : TokenCredential

The OAuthTokenCredential type exposes the following members.

Constructors
  NameDescription
Public methodOAuthTokenCredential
Initializes a new instance of the OAuthTokenCredential class.
Top
Properties
  NameDescription
Public propertyExpirationDate
Gets or sets the Token expiration date.
(Inherited from TokenCredential.)
Public propertyGenerateTokenOptions
Gets or sets the optional infos used to generate the token : referer, credentials, ....
(Inherited from TokenCredential.)
Public propertyIsSsl
Gets or sets a value indicating whether the token must always pass over ssl.
(Inherited from TokenCredential.)
Public propertyOAuthRefreshToken
Gets or sets the OAuth refresh token useful for getting a new access token once the old one expired.
Public propertyRefreshTokenExchangeInterval
Gets or sets the exchange interval for the OAuth refresh token. The default is 24 hours.
Public propertyCode exampleServiceUri
Gets or sets the URI of the service that can be accessed with this credential.
(Inherited from Credential.)
Public propertyToken
Gets or sets the token used to access the arcgis services with this credential. The token can have been generated either by the token service using the specified user name and password or by the OAuth authentication process.
(Inherited from TokenCredential.)
Public propertyUserName
Gets or sets the user associated with the Credential object.
(Inherited from TokenCredential.)
Top
Methods
  NameDescription
Public methodRefreshTokenAsync
Refreshes the token.
(Inherited from TokenCredential.)
Public methodRefreshTokenImplAsync Obsolete.
Refreshes the token.
(Inherited from TokenCredential.)
Top
Events
  NameDescription
Public eventPropertyChanged
Occurs when a property value changes.
(Inherited from Credential.)
Top
Remarks
You will generally get an instance of this class by calling GetCredentialAsync(CredentialRequestInfo, Boolean). To accommodate specific uses cases, this object can also be created manually.
See Also