Show / Hide Table of Contents

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.

Inheritance
object
Credential
ArcGISCredential
OAuthApplicationCredential
Implements
INotifyPropertyChanged
ArcGISCredential.Referer
ArcGISCredential.Username
ArcGISCredential.ToJson()
Credential.ServerContext
Credential.PropertyChanged
Credential.FromJson(string)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
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

Register Your Application

Applies to

TargetVersions
.NET Standard 2.0200.5 - 200.8
.NET200.5 - 300.0
.NET Windows200.5 - 300.0
.NET Android200.5 - 300.0
.NET iOS200.5 - 300.0
.NET Framework200.5 - 200.8
UWP200.5 - 200.8
In this article
Provide feedback
Back to top Copyright © 2025 Esri.