增加功能:根据最新的Bootstrap.Security.Mvc组件增加TokenValidateAuthorizateOption配置项
This commit is contained in:
parent
c2b6291fa0
commit
8abc539e3b
|
@ -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 =>
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
"Expires": 5,
|
||||
"SecurityKey": "BootstrapAdmin-V1.1"
|
||||
},
|
||||
"TokenValidateAuthorizateOption": "Role",
|
||||
"ApplicationName": "__bd__",
|
||||
"ApplicationDiscriminator": "BootstrapAdmin",
|
||||
"KeyPath": "D:\\App\\Web-App\\keys",
|
||||
|
|
Loading…
Reference in New Issue