facebook

Questions about LDAP-DB Security Scaffold Customization

  1. MyEclipse IDE
  2.  > 
  3. Spring Development
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #324900 Reply

    nhernandez
    Participant

    Hello,

    My team is working on a Scaffold Customization project, and we had been required to create a -so called- Hybrid Security Strategy, by using LDAP Authentication and DB Authorization (customer requires to mantain user-roles, and option-roles configuration from DB tables).

    LDAP part has been easy to implement, by using the normal LDAP authentication strategy, and Roles extraction was just matter of substituting the AuthoritiesPopulator inside the “userDetailsService” bean, , with another implementation of LdapAuthoritiesPopulator interface, that uses DataSource and queries to extract the roles.

    But the challenging part is to Scaffold the menu options page by retrieving them from the DB configuration Tables. This idea implies that during scaffolding time, it is supposed to retrieve the options list, its roles, and create the “menu.jsp” with all of it, by using “crudDataTypeMenuSegment.jet”.

    So, question number 1 is:
    Is there any way to add this behavior to the scaffolding process? Maybe adding a subroutine to an existing java piece or modifying jet templates?

    Question number 2 is:
    For security at service’s methods level, we’re planning to extract the comments from the tables in the database (Oracle 10g), where we will put the list of roles that will have access to perform CRUD operations over the specific scaffolded entity.
    Is it possible to retrieve the comments from database? which attribute in the “model” object holds this value (at services generation time)?

    Thanks for your help!

    #324940 Reply

    nhernandez
    Participant

    Guys, do you have any idea regarding this two questions? of hint/docs about this topic?

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Questions about LDAP-DB Security Scaffold Customization

You must be logged in to post in the forum log in