Results 1 to 9 of 9

Thread: Spring Security Tables

  1. #1
    Join Date
    Dec 2010
    Posts
    27

    Question Spring Security Tables

    Hi,
    I wanted to know if all Spring Security tables are needed. If not which are ones are needed. See the tables below.

    USERS, AUTHORITIES, GROUPS, GROUP_AUTHORITIES, AND GROUP_MEMBERS


    Thanks

  2. #2
    Join Date
    Jan 2008
    Posts
    1,826

    Default

    It depends on what you are utilizing. For example, if you are using in memory or ldap authentication you might not need any of the tables. The JdbcDaoImpl by default uses the schema defined in the reference. However, you can customize the queries on it to use a totally different schema. An example of the default queries and how to customize them can be found on this thread. If this still doesn't meet your needs you can write your own AuthenticationProvider.
    Rob Winch - @rob_winch
    Spring Security Lead
    Pivotal

  3. #3
    Join Date
    Dec 2010
    Posts
    27

    Question

    Quote Originally Posted by rwinch View Post
    It depends on what you are utilizing. For example, if you are using in memory or ldap authentication you might not need any of the tables. The JdbcDaoImpl by default uses the schema defined in the reference. However, you can customize the queries on it to use a totally different schema. An example of the default queries and how to customize them can be found on this thread. If this still doesn't meet your needs you can write your own AuthenticationProvider.
    We are going to have our user roles in DB. So wanted to know which all Spring tables we need to create. Do we need all five? Or which combinations we can use.

    For example we have roles, admin, employee, regular. We will have user id tied to those roles.

  4. #4
    Join Date
    Jan 2008
    Posts
    1,826

    Default

    If you are not using groups, then you should not need any of the tables specified in A.1.1 Group Authorities
    Rob Winch - @rob_winch
    Spring Security Lead
    Pivotal

  5. #5
    Join Date
    Dec 2010
    Posts
    27

    Question

    We want to use groups tables. So which all other tables we have to have.

    Thanks

  6. #6
    Join Date
    Jan 2008
    Posts
    1,826

    Default

    All of the tables specified in A.1 User Schema and A.1.1 Group Authorities
    Rob Winch - @rob_winch
    Spring Security Lead
    Pivotal

  7. #7
    Join Date
    Dec 2010
    Posts
    27

    Question

    We dont want authorities tables. We just have user names and groups such as supervisor, admin, employee etc.

    What all tables we need for that.

    Thanks

  8. #8
    Join Date
    Jan 2008
    Posts
    1,826

    Default

    Specify these as roles and ignore the groups tables.
    Rob Winch - @rob_winch
    Spring Security Lead
    Pivotal

  9. #9
    Join Date
    Dec 2010
    Posts
    27

    Default

    So only use Users and Authorities table in appendix A.1??

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •