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
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.8 - 200.5 |
.NET | 100.13 - 200.5 |
.NET Windows | 100.13 - 200.5 |
.NET Android | 200.0 - 200.5 |
.NET iOS | 200.0 - 200.5 |
.NET Framework | 100.8 - 200.5 |
Xamarin.Android | 100.8 - 100.15 |
Xamarin.iOS | 100.8 - 100.15 |
UWP | 100.8 - 200.5 |