[Security & JAAS/JBoss] - login module (sometimes) not called
by yararaca
I have got 4.0.4GA, using login form and a login module where I set certain attributes to session.
When I login for first time a login form is presented and my login module is called and everything is ok (note the [STDOUT] which comes from my login module code):
| 15:48:40,968 DEBUG [AuthenticatorBase] Security checking request POST /DemoWeb/j_security_check
| 15:48:40,968 DEBUG [FormAuthenticator] Authenticating username 'S941'
| 15:48:40,968 INFO [STDOUT] SetSessionDBLoginModule Setting attributes
| 15:48:41,077 DEBUG [FormAuthenticator] Authentication of 'S941' was successful
| 15:48:41,077 DEBUG [FormAuthenticator] Redirecting to original '/DemoWeb/home.jsf'
|
However, when I try to login for second time from another window or machine the login form is presented (ok), but my login module is not called (note no the [STDOUT] from my login module code):
| 15:51:06,931 DEBUG [AuthenticatorBase] Security checking request POST /DemoWeb/j_security_check
| 15:51:06,931 DEBUG [FormAuthenticator] Authenticating username 'S941'
| 15:51:06,947 DEBUG [FormAuthenticator] Authentication of 'S941' was successful
| 15:51:06,947 DEBUG [FormAuthenticator] Redirecting to original '/DemoWeb/home.jsf'
|
It looks like the authentication data is cached somewhere and the server thinks it doesn't need to authenticate the same user again. Which is wrong, because i need to set the attributes. Anybody has a clue why this happens?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3993452#3993452
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3993452
19 years, 4 months
[JBoss Seam] - Problem with DataModelSelection?
by jkrupka
I've run across a problem which I haven't been able to figure out thus far - I have a form displaying a record for updating, and underneath that form I have a datatable with the children records, which you can click on a button next to and bring them up in a form of their own. It all seems to work ok, but if there are multiple children in the list, no matter which one you click on it always injects the first one into the variable I have annotated with DataModelSelection. I know the backing List is correct, I have looked at it in debug, but I can't figure out why the wrong entity is being injected =/ I'm letting the List be populated by the entityManager, I have my associations set up and I just get the List that is the entityManager fetches.
The function which takes the selected entity and sets up the next form begins a nested conversation - this shouldn't matter right?
Has anyone seen anything like this before? Any ideas?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3993451#3993451
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3993451
19 years, 4 months
[Tomcat, HTTPD, Servlets & JSP] - Re: Tomcat Clustering/JBossCacheService webapp path uniquene
by laurensvh
Hi brain,
Thanks for the quick reply!
Perhaps I was not clear enough with the context path, but the 'aaaa' is
part of the context path and not the hostname as you already figured.
(The real name is 'hypotheek', d.i. dutch for mortgage ;-))
I've tried both FIELD and ATTRIBUTE granularity (w/ and without the flags
you mentioned), but with the same results. Looking at the code, the type of
granularity does not really affects the handling of the context path I think(?)
At the moment I've added a line with:
webAppPath_ = webAppPath_.replace("/","_");
and everythings works fine, but I consider it more of a hack, than a real solution.
Regards,
Lau
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3993450#3993450
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3993450
19 years, 4 months