1.Control Panel\All Control Panel Items\Administrative Tools 下找到Server Manager2.打开Server Manager, 在roles里面 右侧 点击 Add Roles3.对 File Services和Web Server...
项目里用到了Shiro这个权限框架,感觉呢,挺方便的。
看了一天多两天的样子。然后运行了一些例子,比较容易,后来看到一个过滤器,配置如下
[main]
#默认是/login.jsp
authc.loginUrl=/login
roles.unauthorizedUrl=/unauthorized
perms.unauthorizedUrl=/unauthorized
logout.redir...
分类:
其他好文 时间:
2015-04-13 16:47:58
阅读次数:
110
异常详情:
Caused by: org.hibernate.MappingException: Could not determine type for: java.util.List, at table: ss_user, for columns: [org.hibernate.mapping.Column(roles)]
at org.hibernate.mapping.Simp...
分类:
移动开发 时间:
2015-03-16 09:49:11
阅读次数:
251
$(data.resultList).each(function () { var selectedFlag = ${sessionScope.userInfo.roleLeve}==this.role_leve ? "selected ='selected'" :""; roles.append(...
分类:
Web程序 时间:
2015-03-05 19:10:52
阅读次数:
523
1.1. Role管理参考1:ASP.NET Identity 2.0: Customizing Users and Roles参考2:asp.net identity 2.2.0 中角色启用和基本使用(一)1.1.1. 增加ApplicationRole新建ApplicationRole,可参考A...
分类:
Web程序 时间:
2015-02-28 01:31:36
阅读次数:
421
1. 自定义属性参考:ASP.NET Identity 2.0: Customizing Users and Roles以扩展ApplicationUser为例。1.1. 新增Password属性修改IdentityModel.cs,ApplicationUser继承自IdentityUser,只需...
分类:
Web程序 时间:
2015-02-28 01:30:53
阅读次数:
227
1.duplicatetargetdatabaseforstandbyfromactivedatabasenofilenamecheckDORECOVERspfilesetservice_names=‘CWFOLB‘setdb_unique_name=‘CWFOLB‘setlog_archive_dest_1=‘location=/folarchVALID_FOR=(ALL_LOGFILES,ALL_ROLES)DB_UNIQUE_NAME=CWFOLB‘setlog_archive_dest_2=‘SERV..
分类:
其他好文 时间:
2015-02-20 00:15:33
阅读次数:
255
授权或叫访问控制是对资源指定访问权限的功能。简单而言就是谁能够访问什么。在授权领域有三个关键元素——permissions, roles, and users——在shiro中我们经常会引用。
Permissions(权限)是安全策略中最原子级别的概念,并且他们够不语句表达。权限代表在我们的系统中可以做什么。良好的权限形式描述了资源类型以及拥有它的操作者能够对这些资源做什么。比如是否可以...
分类:
Web程序 时间:
2015-01-31 00:31:05
阅读次数:
548
MVC源码学习之AuthorizeAttributed。通过对System.Web.Mvc下面的类AuthorizeAttribute.cs的源代码调试,研究在Controller和Action上面添加[Authorize(Roles=,Users=)]时,后台的执行逻辑。
分类:
Web程序 时间:
2015-01-30 17:39:44
阅读次数:
172
Create/Drop/Grant/Revoke Roles and PrivilegesHive Default Authorization - Legacy Modehas information about these DDL statements:CREATE ROLEGRANT ROLER...
分类:
其他好文 时间:
2015-01-24 22:39:12
阅读次数:
445