Show / Hide Table of Contents

Class OAuthTokenCredential

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

Inheritance
Object
Credential
TokenCredential
OAuthTokenCredential
Implements
INotifyPropertyChanged
ISerializable
TokenCredential.Token
TokenCredential.ExpirationDate
TokenCredential.UserName
TokenCredential.IsSsl
TokenCredential.GenerateTokenOptions
TokenCredential.RefreshTokenAsync()
Credential.ServiceUri
Credential.PropertyChanged
Credential.ISerializable.GetObjectData(SerializationInfo, StreamingContext)
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Esri.ArcGISRuntime.Security
Assembly: Esri.ArcGISRuntime.dll
Syntax
[Serializable]
public sealed class OAuthTokenCredential : TokenCredential, INotifyPropertyChanged, ISerializable
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.

Constructors

Name Description
OAuthTokenCredential(Uri, String, GenerateTokenOptions)

Initializes a new instance of the OAuthTokenCredential class.

Properties

Name Description
OAuthRefreshToken

Gets or sets the OAuth refresh token useful for getting a new access token once the old one expired.

RefreshTokenExchangeInterval

Gets or sets the exchange interval for the OAuth refresh token. The default is 24 hours.

Applies to

TargetVersions
.NET Standard 2.0100.3 - 200.1
.NET 6.0100.13 - 200.1
.NET 6.0 Windows100.13 - 200.1
.NET 6.0 Android200.0 - 200.1
.NET 6.0 iOS200.0 - 200.1
.NET Framework100.0 - 200.1
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Android100.0 - 100.15
iOS100.0 - 100.15
UWP100.0 - 200.1
In This Article
Back to top Copyright © 2022 Esri.