共用方式為


OAuthAuthorizationServerOptions.AccessTokenExpireTimeSpan Property

 

The period of time the access token remains valid after being issued. The default is twenty minutes. The client application is expected to refresh or acquire a new access token after the token has expired.

Namespace:   Microsoft.Owin.Security.OAuth
Assembly:  Microsoft.Owin.Security.OAuth (in Microsoft.Owin.Security.OAuth.dll)

Syntax

public TimeSpan AccessTokenExpireTimeSpan { get; set; }
public:
property TimeSpan AccessTokenExpireTimeSpan {
    TimeSpan get();
    void set(TimeSpan value);
}
member AccessTokenExpireTimeSpan : TimeSpan with get, set
Public Property AccessTokenExpireTimeSpan As TimeSpan

Property Value

Type: System.TimeSpan

Returns TimeSpan.

See Also

OAuthAuthorizationServerOptions Class
Microsoft.Owin.Security.OAuth Namespace

Return to top