Role vs RoleGroup in JBoss DataBaseServerLoginModule

给你一囗甜甜゛ 提交于 2019-12-04 17:08:44
simgineer

I was able to get my login working so now I can provide a decent answer to Part B:

Certainly do not need to revise the query. JBoss 6 specifically expects at two column result set where a table will be constructed where username (or principal) matches '?' and the first column will be the group that user is in and the second column is just the entry "Roles".

It is JBoss specific and an example of backing table would be:

username | groupid
--------------
james | admin
james | users
james | backupadmin
admin | admin

and a result set when the username james attempts to login for the rolesQuery would be:

col1 | col2
--------------
admin | Roles
users | Roles
backupadmin | Roles
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!