Creating my first JDBC Realm(Glassfish V3)

前端 未结 1 464
暗喜
暗喜 2021-02-11 00:04

I want to create a JDBC Realm for my web app. Since my users are very different from each other i need to have just one table, with the usernames and passwords for the realm, i

相关标签:
1条回答
  • 2021-02-11 00:33

    I assume (from your previous question) that you don't have a group table. In fact you don't necessarily need one. JDBCRealm works with only a user table containing a group column as well.

    In your Glassfish admin console change the following:

    Group Table: Role

    Group Name Column: userType

    Since you used different typings (letter cases) for the word "role", make sure that the configuration values for your realm are exactly the same as in the table.

    0 讨论(0)
提交回复
热议问题