From 8abc539e3b591ee4cc65ffd6317367d94856087d Mon Sep 17 00:00:00 2001 From: Argo-MacBookPro Date: Wed, 12 Sep 2018 18:40:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=8A=9F=E8=83=BD=EF=BC=9A?= =?UTF-8?q?=E6=A0=B9=E6=8D=AE=E6=9C=80=E6=96=B0=E7=9A=84Bootstrap.Security?= =?UTF-8?q?.Mvc=E7=BB=84=E4=BB=B6=E5=A2=9E=E5=8A=A0TokenValidateAuthorizat?= =?UTF-8?q?eOption=E9=85=8D=E7=BD=AE=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bootstrap.Admin/Startup.cs | 2 +- Bootstrap.Admin/appsettings.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Bootstrap.Admin/Startup.cs b/Bootstrap.Admin/Startup.cs index 506b0dd8..08bc88e9 100644 --- a/Bootstrap.Admin/Startup.cs +++ b/Bootstrap.Admin/Startup.cs @@ -80,7 +80,7 @@ namespace Bootstrap.Admin app.UseHttpsRedirection(); app.UseStaticFiles(); app.UseAuthentication(); - app.UseBootstrapRoleAuthorization(); + app.UseBootstrapAdminAuthorization(); app.UseWebSocketHandler(options => options.UseAuthentication = true, WSHelper.WebSocketMessageHandler); app.UseCacheManagerCorsHandler(); app.UseMvc(routes => diff --git a/Bootstrap.Admin/appsettings.json b/Bootstrap.Admin/appsettings.json index c0fd8549..84e250e8 100644 --- a/Bootstrap.Admin/appsettings.json +++ b/Bootstrap.Admin/appsettings.json @@ -21,6 +21,7 @@ "Expires": 5, "SecurityKey": "BootstrapAdmin-V1.1" }, + "TokenValidateAuthorizateOption": "Role", "ApplicationName": "__bd__", "ApplicationDiscriminator": "BootstrapAdmin", "KeyPath": "D:\\App\\Web-App\\keys",