Class OAuthTokenCredential
A credential used to access ArcGIS resources secured with OAuth 2.0.
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. |
RefreshTokenExpirationDate | Gets the date that the OAuthRefreshToken expires on, if known and applicable. |
See Also
Esri.ArcGISRuntime.Security.ServerInfo.OAuthServerInfo
Applies to
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 200.2 |
.NET 6.0 | 100.13 - 200.2 |
.NET 6.0 Windows | 100.13 - 200.2 |
.NET 6.0 Android | 200.0 - 200.2 |
.NET 6.0 iOS | 200.0 - 200.2 |
.NET Framework | 100.0 - 200.2 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Android | 100.0 - 100.15 |
iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.2 |