revert(#I12T0Y): 移除支持QQ浏览器相关代码

#Comment
comment #I12T0Y
相关代码移动到 dev-NotSafe 分支

#Issue
link #I12T0Y
This commit is contained in:
Argo Zhang 2019-09-28 14:19:12 +08:00
parent 96952ca152
commit 8448612f64
No known key found for this signature in database
GPG Key ID: 152E398953DDF19F
2 changed files with 1 additions and 9 deletions

View File

@ -61,8 +61,7 @@ namespace Bootstrap.Admin
services.AddSignalR().AddJsonProtocalDefault();
services.AddSignalRExceptionFilterHandler<SignalRHub>((client, ex) => client.SendMessageBody(ex).ConfigureAwait(false));
services.AddResponseCompression();
// 兼容 QQ 浏览器兼容模式
services.AddBootstrapAdminAuthentication(configureCookies: ConfigureCookie).AddGitee(OAuthHelper.Configure).AddGitHub(OAuthHelper.Configure);
services.AddBootstrapAdminAuthentication().AddGitee(OAuthHelper.Configure).AddGitHub(OAuthHelper.Configure);
services.AddSwagger();
services.AddButtonAuthorization(MenuHelper.AuthorizateButtons);
services.AddBootstrapAdminBackgroundTask();
@ -124,11 +123,5 @@ namespace Bootstrap.Admin
app.UseSwagger(Configuration["SwaggerPathBase"].TrimEnd('/'));
app.UseMvcWithDefaultRoute();
}
private void ConfigureCookie(CookieAuthenticationOptions options)
{
var supportQQ = Configuration.GetValue("SupportQQBrowser", false);
if (supportQQ) options.Cookie.SameSite = SameSiteMode.None;
}
}
}

View File

@ -15,7 +15,6 @@
"ConnectionStrings": {
"ba": "Data Source=.;Initial Catalog=BootstrapAdmin;User ID=sa;Password=sa"
},
"SupportQQBrowser": false,
"DB": [
{
"Enabled": false,