IntelliJ Java IDE
The moose likes Spring and the fly likes Spring security and Userid for authorization, instead of Role and few more questions Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Application Frameworks » Spring
Reply Bookmark "Spring security and Userid for authorization, instead of Role and few more questions" Watch "Spring security and Userid for authorization, instead of Role and few more questions" New topic
Author

Spring security and Userid for authorization, instead of Role and few more questions

ashish kulkarni
Ranch Hand

Joined: Aug 15, 2002
Posts: 127
I have few questions, if you can answer any would be great help

  • I have configured LDAP to do authentication, and i am able to load the roles and authorize pattern by ROLES, i would like to know if i can add ROLES and user id for authorization for example, in below code /displayMyData will be available for all users in ROLE ROLE_ROLEADMINS, but i would like to make it available for a particular user id MYUSERID, so i dont want him to add to this ROLE, but give access to only 1 function, is it possible to do so, and if yes HOW?
    I know you can give acccess by IP address using hasIpAddress




  • Can I get all the roles from a database table, instead of hard coding them in XML file


  • I can print user name on JSP page using tag <security:authentication property="principal.username"/>
    Is there any tag to print all the roles on JSP page for the logged in user for testing purpose


  • How can i access LDAP context and user id in controller class so i read more properties or do some function after user logs in,


  • A$HI$H
     
    IntelliJ Java IDE
     
    subject: Spring security and Userid for authorization, instead of Role and few more questions
     
    Threads others viewed
    EJB and Security (JAAS)
    Can I have j_security_check in two login.jsp
    security-role-ref element
    security constraint : http-method
    HFSJ 2nd edition Mock exam questions 6, 11,26,34,49 and 69
    WebSphere development made easy
    without the weight of IBM tools
    http://www.myeclipseide.com