Hi All, I have two questions: 1) How do I initialize both authentication and authorization at the time of log-in. I want to do this to avoid querying db twice (one for authentication and one for authorization)? Any sample code would be the easiest to get me started. 2) Each time I call currrentUser.login() (just for testing purpose as multiple login does not happen in real life), doGetAuthenticationInfo is called. As a result, db is queried. Each time I call currrentUser.hasRole(), doGetAuthorizationInfo is then called. As a result, db is queried again. How do I avoid this repeated db queries?
Thanks.
