Jetspeed login problem MyLoginModule

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Jetspeed login problem MyLoginModule

ngbaoan
Hi guys

I've just begun with jetspeed, and i have some troubles with MyLoginModule:

I followed the guide with MyLoginModule, added login.conf to \classes\, and added MyLoginModule.jar to \lib\.

when i launched tomcat 6, the login and the password worked, but the URL showed error 403 resource is not available, the URL showed : http://localhost:8080/jetspeed/login/redirector?token=rosup-1324687542, but when i returned to http://localhost:8080/jetspeed/portal/, it worked.

Do you know to redirect from http://localhost:8080/jetspeed/login/redirector?token=rosup-1324687542 to http://localhost:8080/jetspeed/portal/  or do you know the problem ?

thanks



Do you have any issues ?

thanks

Bao
Reply | Threaded
Open this post in threaded view
|

Re: Jetspeed login problem MyLoginModule

ngbaoan
ok, i found the problem, just modify portal-user to * in

    <auth-constraint>
     
     
      <role-name>portal-user</role-name>
    </auth-constraint>
  </security-constraint>

now, i have another problem with roles, i modified LoginModule to use my login : MyLoginModule, it works fine with Jetspeed, tomcat and my DB MySQL,
 i also checked HttpServletRequest and RenderRequest, its give true in isUserInRole("myrole"), but when i use to "myrole" in psml files, it doesn't work

    <security-constraints>
        <security-constraint>
             <roles>myrole</roles>
             <permissions>view</permissions>
        </security-constraint>
    </security-constraints>



i need help, please guy, thanks

PS :  i defined myrole in Role Management but i did not associate with user, am i wrong ?