Show / Hide Table of Contents

Property TokenExpirationInterval

TokenExpirationInterval

Gets or sets the requested expiration interval for the token.

Declaration
public TimeSpan TokenExpirationInterval { get; set; }
Property Value
Type Description
System.TimeSpan

The requested expiration interval for the token.

Remarks

If set to a non-zero interval, this value overrides the default TokenExpirationInterval.

When working with the OAuth two-step authorization code workflow, you can use this property to specify the lifetime of the refresh token. Otherwise, this property is used for the lifetime of the access token.

Set to System.TimeSpan.MaxValue to request the maximum allowed expiration time. This is typically 90 days for OAuth credentials, and 14 days for ArcGIS token credentials. See Portal Security documentation to learn more about token expiration.

See Also
TokenExpirationInterval

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.8 - 200.8
.NET100.13 - 200.8
.NET Windows100.13 - 200.8
.NET Android200.0 - 200.8
.NET iOS200.0 - 200.8
.NET Framework100.8 - 200.8
Xamarin.Android100.8 - 100.15
Xamarin.iOS100.8 - 100.15
UWP100.8 - 200.8
In This Article
Back to top Copyright © 2022 Esri.