ArcGIS Runtime SDK for WPF - Library Reference
TokenValidity Property
See Also 
ESRI.ArcGIS.Client Namespace > IdentityManager.GenerateTokenOptions Class : TokenValidity Property

Gets or sets the suggested lifetime of the token in minutes. If set, this value overrides the default IdentityManager.TokenValidity.

Syntax

Visual Basic (Declaration) 
Public Property TokenValidity As Integer
C# 
public int TokenValidity {get; set;}

Remarks

With the OAuth authorization grant workflow, you can generate a permanent OAuth refresh token by specifying a token validity of -1. If you don’t specify a token validity the default refresh token validity is 2 weeks.

Property Value

The token validity in minutes.

Requirements

Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7, Windows 8

See Also

© ESRI, Inc. All Rights Reserved.