I'm using a WebserviceAuthenticationHandler which extends 
AbstractUsernamePasswordAuthenticationHandler in my case. But thats the only 
one authenticator I use.
Webservice Client is a Spring-WS client injected into the 
WebserviceAuthenticationHandler.


Robert



Am 19.05.2011 um 15:55 schrieb Ben Noordhuis:

> On Thu, May 19, 2011 at 15:29, Marvin Addison <[email protected]> 
> wrote:
>>> I've seen posts on how to add new authentication handlers,
>>> but if anyone has already implemented one with a WEB service,
>>> I'd be more than happy to share !
>> 
>> It's possible and it's been discussed in the recent past, but I'm not
>> aware of any code having been shared.  If you've solved this problem
>> and can share your solution, please speak up.
> 
> Can't post the code, I'm afraid, but I can offer some pointers.
> 
> The approach I took is to write a custom
> CredentialsToPrincipalResolver whose resolvePrincipal() method first
> delegates to a stock UsernamePasswordCredentialsToPrincipalResolver.
> If the delegate returns null, a XML-RPC web service is queried and the
> result is wrapped in a Principal object.
> 
> Easy in both concept and practice. The class is only 110 lines long
> and 25 of those are import statements.
> 
> -- 
> You are currently subscribed to [email protected] as: 
> [email protected]
> To unsubscribe, change settings or access archives, see 
> http://www.ja-sig.org/wiki/display/JSG/cas-dev
> 


-- 
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-dev

Reply via email to