/// <summary> /// Creates an instance of authorization server options with default values. /// </summary> public OAuthAuthorizationServerOptions() { AuthenticationScheme = OAuthDefaults.AuthenticationType; AuthorizationCodeExpireTimeSpan = TimeSpan.FromMinutes(5); AccessTokenExpireTimeSpan = TimeSpan.FromMinutes(20); SystemClock = new SystemClock(); }
/// <summary> /// Creates an instance of bearer authentication options with default values. /// </summary> public OAuthBearerAuthenticationOptions() : base() { AuthenticationScheme = OAuthBearerAuthenticationDefaults.AuthenticationScheme; BackchannelTimeout = TimeSpan.FromMinutes(1); Challenge = OAuthBearerAuthenticationDefaults.AuthenticationScheme; Notifications = new OAuthBearerAuthenticationNotifications(); RefreshOnIssuerKeyNotFound = true; SystemClock = new SystemClock(); TokenValidationParameters = new TokenValidationParameters(); }