Class OAuthApplicationCredential
The OAuth application credential generates a short-lived access token that gives your application permission to access ready-to-use services, such as basemap layers, geocoding, and routing, in ArcGIS.
Implements
Namespace: Esri.ArcGISRuntime.Security
Assembly: Esri.ArcGISRuntime.dll
Syntax
[Serializable]
public sealed class OAuthApplicationCredential : ArcGISCredential, INotifyPropertyChanged, ISerializable
Remarks
It is important to treat client secret as you would your password. You must keep it confidential and we recommended not storing in your application.
Properties
Name | Description |
---|---|
ClientId | Gets a unique identifier associated with an application registered with the portal that assists with client/server OAuth authentication. |
Referer | Gets the referer used to generate a token. |
TokenExpirationInterval | Gets the length of time a token credential remains valid. If set to System.TimeSpan.Zero, the server default is used. |
Methods
Name | Description |
---|---|
CreateAsync(Uri, String, String, TimeSpan, CancellationToken) | Creates an OAuthApplicationCredential with information needed to access an ArcGIS resource. |
GetTokenInfoAsync(CancellationToken) | Returns an instance of OAuthApplicationTokenInfo generated by this credential. |
ToJson() | Convert this Credential to a JSON string. |
See Also
Applies to
Target | Versions |
---|---|
.NET Standard 2.0 | 200.5 |
.NET | 200.5 |
.NET Windows | 200.5 |
.NET Android | 200.5 |
.NET iOS | 200.5 |
.NET Framework | 200.5 |
UWP | 200.5 |