增加功能:根据最新的Bootstrap.Security.Mvc组件增加TokenValidateAuthorizateOption配置项
This commit is contained in:
parent
c2b6291fa0
commit
8abc539e3b
|
@ -80,7 +80,7 @@ namespace Bootstrap.Admin
|
||||||
app.UseHttpsRedirection();
|
app.UseHttpsRedirection();
|
||||||
app.UseStaticFiles();
|
app.UseStaticFiles();
|
||||||
app.UseAuthentication();
|
app.UseAuthentication();
|
||||||
app.UseBootstrapRoleAuthorization();
|
app.UseBootstrapAdminAuthorization();
|
||||||
app.UseWebSocketHandler(options => options.UseAuthentication = true, WSHelper.WebSocketMessageHandler);
|
app.UseWebSocketHandler(options => options.UseAuthentication = true, WSHelper.WebSocketMessageHandler);
|
||||||
app.UseCacheManagerCorsHandler();
|
app.UseCacheManagerCorsHandler();
|
||||||
app.UseMvc(routes =>
|
app.UseMvc(routes =>
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
"Expires": 5,
|
"Expires": 5,
|
||||||
"SecurityKey": "BootstrapAdmin-V1.1"
|
"SecurityKey": "BootstrapAdmin-V1.1"
|
||||||
},
|
},
|
||||||
|
"TokenValidateAuthorizateOption": "Role",
|
||||||
"ApplicationName": "__bd__",
|
"ApplicationName": "__bd__",
|
||||||
"ApplicationDiscriminator": "BootstrapAdmin",
|
"ApplicationDiscriminator": "BootstrapAdmin",
|
||||||
"KeyPath": "D:\\App\\Web-App\\keys",
|
"KeyPath": "D:\\App\\Web-App\\keys",
|
||||||
|
|
Loading…
Reference in New Issue