开发者

JAAS and Security - how to use custom tables with GlassFish Security?

开发者 https://www.devze.com 2023-04-10 12:53 出处:网络
Is it possible to use JAAS with GlassFish but using my custom tables ? I\'ve got a mapping like this tbUser -> user_roles <- tbRoles

Is it possible to use JAAS with GlassFish but using my custom tables ?

I've got a mapping like this

tbUser -> user_roles <- tbRoles

It's a manytomany with users and roles mapped by an Id into user_roles table, so for this to work with JAAS and GlassFish I would need to change GlassFish custom select to one made by me.

Is it possible to make glassfish use that setup instead of it's default user开发者_如何学Go_table, role_table without relations ?

I need to use this setup for db, because of the client reqs.


This post may help: http://weblogs.java.net/blog/kumarjayanti/archive/2010/02/01/using-custom-jaas-loginmodules-authentication-glassfish


You may want to use JDBCRealm in GlassFish: http://blogs.oracle.com/swchan/entry/jdbcrealm_in_glassfish .

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号