Back Forum Reply New

WebServices/Custom Authentication Tutorial? Samples?

Hello All,
I have an application running Spring Web Flow and Spring MVC.  I need to authenticate using a proprietary legacy web service.  

I assume that I'll need to write a custom authentication handler.  I looked through the Spring Security documents and couldn't find much on Custom Authentication.  

Are there any simple examples I can look at that show how it's done?

Does Spring put out any tutorials on writing custom authentication handlers?

I've found an independent blog posting or two, but for some reason haven't yet found anything from Spring Source.  Am I just looking in the wrong place?  

Where should I get started?

Thanks in Advance,
Steven
Harvard Children's Hospital Informatics Program

Hi,

I'd guess you're looking to write an AuthenticationProvider implementation which calls your web service. It is described here:

sp...ew.html#d4e736

and you can see how to use register a custom provider using namespace-based configuration here:

sp...s-auth-manager

Try starting with the tutorial sample war and adding your custom provider in place of the default, in-memory one.

Your best place to look is ultimately the source - add the source jars to your IDE and you will be able to navigate about through the projects interfaces and implementations and see what they do and how they fit together much more easily than reading a reference manual.
¥
Back Forum Reply New