문제

I want to use JDBCRealm for login authentication but instead of having a user_role table I have a groups table which has pointer to the group tables each containing user and it's role in that group,how should I implement JDBCRealm for this case?

thank you

도움이 되었습니까?

해결책

You cannot use JDBCRealm for this purpose: you will have to write your own subclass of JDBCRealm and change the queries used for authorization.

Another tip: don't use JDBCRealm at all: it does not scale at all since there is a single JDBC Connection object used for all database communication. You are better off using DataSourceRealm.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top