Peter Mularien

Author
+ Follow
since Sep 06, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Peter Mularien

Sounds like you may not have the relevant servlet filters in the right order. Can you post your web.xml fille as well?
13 years ago
Hi Shak,

You might find it easier to configure LDAP authentication (and Spr Sec itself) using the security namespace support instead of creating beans yourself. It's quite easy, especially for newcomers, to miss a critical bean or bean property when manually wiring the Spr Sec beans.

Peter
13 years ago
Hi Charan,

The reason you are seeing this mentioned with 3.0 and not 2.0 is because OpenID AX support wasn't added until Spr Sec 3.0

I suppose you might be able to roll your own AX support in 2.0 with some custom code (which you could model on Spr Sec 3.0 support)...

Peter
13 years ago
Sorry, I missed that

1> Could you please give us (or review) the previous few lines above this one you posted?
2> Alternatively, you can simply run this in a debugger and set a breakpoint at the line indicated OR on the NoSuchFieldException exception (most IDEs can do this). This approach has been successful for me in the past when trying to diagnose difficult problems.
13 years ago
1> Does that directory exist?
2> With Eclipse WTP, it's often easiest to just delete the configured server and create a new one if you run into problems. Then redeploy your web application(s). Depending on the Eclipse WTP version you are using, some of the other available options for cleaning up may or may not work.
13 years ago
Hi Dave,

This looks 90% probable not to be related to Spring Security. Do you have any other configuration files OR do you have a bean using constructor injection with the @Autowired annotation? If you enable a higher level of Spring logging, you should get information on what specific bean it is trying to wire.

Peter
13 years ago
Hi Sam,

You probably want to look into hooking into the authentication events published by the framework, which uses the standard Spring ApplicationListener functionality. The Spr Sec framework ships with "LoggerListener", which should provide you with an example of how to use these. Refer to the Javadoc for the relevant classes here.

Best,
Peter
13 years ago
If it is "SPRING_SECURITY_SAVED_REQUEST" in particular that you are trying to get, I think this is saved as a session attribute and not request attribute (because it needs to persist through several requests involved in login and authentication). Can you provide us the name of the attribute you are trying to retrieve? Is it set by your code, or Spring Security?
13 years ago
Sorry about that confusion, it wasn't clear in your original question that was what you meant. Can you post the source of the setUserLogged method, and clearly indicate what is not working as you expect?
13 years ago
Hi Rafael,

I think you'd want to look at the JavaEE HttpSessionListener functionality, which will notify you when sessions are created and destroyed. You configure this in your deployment descriptor (web.xml)

Best,
Peter
13 years ago


Thanks to all the Java Ranch staff for their support, and thanks to the folks in this forum for the great questions.

Congratulations to the winners, I hope you enjoy the book!

Best,
Peter
13 years ago

Yeah, frameworks like Spring are great, but the fundamentals are more important. Knowing why a certain decision is made is more important than finding a code snippet that works, not really knowing whether it makes sense.


This is the 1000% truth. Understanding "why" and not "how" is what makes you a great developer.
13 years ago
Hello Albert,

Just want to confirm what you mean by "server certificate authentication" - do you mean standard SSL security, or something else?

Best,
Peter
13 years ago
This looks like an Eclipse bug / issue and not related to Spring... that said, it's failing in the Rhino Javascript parser, so I would look for Javascript in your page - without the contents of the page, not too much we can do.
13 years ago
Thank you to all the new folks and I wish you the best of luck!

Best,
Peter
13 years ago