[jboss-user] [JBoss Portal] - Re: additional fields on the login page

ikazarno do-not-reply at jboss.com
Mon Mar 19 06:21:49 EDT 2007


I have a problem with the approach 2. 

"Antoine_h" wrote : 
  | 
  | 2) add the parameter to the username (concatenation with a special separator), then create your own jaas login module (similar to the one provided), and parse the username to retrieve the name and parameter. 
  | use javascript to concatenate the name with the extra parameter. 
  | 
  | 

I have implemented my own login module in the way described above. However, although the method getUsername() of the module returns a correct value, I have a problem with the UserInterceptor. The method req.getRemoteUser() returns a not parsed username with the separator and as a consequence I get NoSuchUserException in UserModule:

org.jboss.portal.core.model.NoSuchUserException: No such user No such user user at mydomain.com#en
org.jboss.portal.core.impl.user.UserModuleImpl.findUserByUserName(UserModuleImpl.java:123)
org.jboss.portal.core.aspects.server.UserInterceptor.invoke(UserInterceptor.java:100)

I think I should try implement the third approach with the cookie? Or there is a simple solution for the problem of UserInterceptor?


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4029249#4029249

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4029249



More information about the jboss-user mailing list