mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-10-25 18:29:01 +08:00
转移.net core 3.1,为.NET 5做准备
This commit is contained in:
25
OpenAuth.Identity/Quickstart/Account/AccountOptions.cs
Normal file
25
OpenAuth.Identity/Quickstart/Account/AccountOptions.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
// 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";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user