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
public sealed class OAuthApplicationCredential : ArcGISCredential, INotifyPropertyChanged
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. |
| PortalUrl | Gets the URL of the portal to authenticate with. |
| TokenExpirationInterval | Gets the length of time a token credential remains valid. Represented in minutes. If not explicitly set, 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. |
See Also
Applies to
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 200.5 - 200.8 |
| .NET | 200.5 - 300.0 |
| .NET Windows | 200.5 - 300.0 |
| .NET Android | 200.5 - 300.0 |
| .NET iOS | 200.5 - 300.0 |
| .NET Framework | 200.5 - 200.8 |
| UWP | 200.5 - 200.8 |