You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
|
|
|
|
|
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace OpenAuth.IdentityServer.Quickstart.Account
|
|
|
|
|
{
|
|
|
|
|
public class AccountOptions
|
|
|
|
|
{
|
|
|
|
|
public static bool AllowLocalLogin = true;
|
|
|
|
|
public static bool AllowRememberLogin = true;
|
|
|
|
|
public static TimeSpan RememberMeLoginDuration = TimeSpan.FromDays(30);
|
|
|
|
|
|
|
|
|
|
public static bool ShowLogoutPrompt = true;
|
|
|
|
|
public static bool AutomaticRedirectAfterSignOut = true; //允许注销后跳转
|
|
|
|
|
|
|
|
|
|
// specify the Windows authentication scheme being used
|
|
|
|
|
public static readonly string WindowsAuthenticationSchemeName = Microsoft.AspNetCore.Server.IISIntegration.IISDefaults.AuthenticationScheme;
|
|
|
|
|
// if user uses windows auth, should we load the groups from windows
|
|
|
|
|
public static bool IncludeWindowsGroups = false;
|
|
|
|
|
|
|
|
|
|
public static string InvalidCredentialsErrorMessage = "Invalid username or password";
|
|
|
|
|
}
|
|
|
|
|
}
|