增加功能:根据最新的Bootstrap.Security.Mvc组件增加TokenValidateAuthorizateOption配置项

This commit is contained in:
Argo-MacBookPro 2018-09-12 18:40:56 +08:00
parent c2b6291fa0
commit 8abc539e3b
2 changed files with 2 additions and 1 deletions

View File

@ -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 =>

View File

@ -21,6 +21,7 @@
"Expires": 5,
"SecurityKey": "BootstrapAdmin-V1.1"
},
"TokenValidateAuthorizateOption": "Role",
"ApplicationName": "__bd__",
"ApplicationDiscriminator": "BootstrapAdmin",
"KeyPath": "D:\\App\\Web-App\\keys",