OAuthAuthorizationServerOptions.SystemClock Property


Used to know what the current clock time is when calculating or validating token expiration. When not assigned default is based on DateTimeOffset.UtcNow. This is typically needed only for unit testing.

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


public ISystemClock SystemClock { get; set; }
property ISystemClock^ SystemClock {
    ISystemClock^ get();
    void set(ISystemClock^ value);
member SystemClock : ISystemClock with get, set
Public Property SystemClock As ISystemClock

Property Value

Type: Microsoft.Owin.Infrastructure.ISystemClock

Returns ISystemClock.

See Also

OAuthAuthorizationServerOptions Class
Microsoft.Owin.Security.OAuth Namespace

Return to top