Class OAuthTokenCredential
A credential used to access ArcGIS resources secured with OAuth.
Implements
System.ComponentModel.INotifyPropertyChanged
System.Runtime.Serialization.ISerializable
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Esri.ArcGISRuntime.Security
Assembly: Esri.ArcGISRuntime.dll
Syntax
[Serializable]
[Obsolete("Use OAuthUserCredential or OAuthApplicationCredential instead.")]
public sealed class OAuthTokenCredential : TokenCredential, INotifyPropertyChanged, ISerializable
Remarks
OAuth
- OAuth
User for user authentication (OAuth 2.0 authorization code flow).Credential - OAuth
Application for app authentication (OAuth 2.0 client credentials flow).Credential - Pregenerated
Token when your app handles token generation manually or externally.Credential
You will generally get an instance of this class by calling Get
Constructors
Name | Description |
---|---|
OAuth |
Initializes a new instance of the OAuth |
Properties
Name | Description |
---|---|
OAuth |
Gets or sets the OAuth refresh token useful for getting a new access token once the old one expired. |
Refresh |
Gets or sets the exchange interval for the OAuth refresh token. The default is 24 hours. |
Refresh |
Gets the date that the OAuth |
Methods
Name | Description |
---|---|
To |
Convert this Credential to a JSON string. |
See Also
Esri.ArcGISRuntime.Security.ServerInfo.OAuthServerInfo
Applies to
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 200.7 |
.NET | 100.13 - 200.7 |
.NET Windows | 100.13 - 200.7 |
.NET Android | 200.0 - 200.7 |
.NET iOS | 200.0 - 200.7 |
.NET Framework | 100.0 - 200.7 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.7 |