Hi John, You indeed need to use the latest snapshot available at: http://www.restlet.org/downloads/current.zip
The Guard class now has a simple checkSecret() method that you can override as Valdis pointed out. In this method, you get two input parameters: identifier/login and secret/password. You just need to return a boolean. In your overriden checkSecret() method, you need to invoke Acegi to check if the identifier+secret combination is valid and return the result boolean. I'm not familiar with Acegi, but it seems like creating a new instance of org.acegisecurity.providers.UsernamePasswordAuthenticationToken with the given identifier and secret would be a first step. Then you could invoke authenticate(myAuthenticationToken) on your AuthenticationManager. BTW, we are planning to support Acegi and also jGuard as Restlet extensions in the future. Let us know if you have specific ideas/requirements by updating the issue reports: "Support Acegi" http://restlet.tigris.org/issues/show_bug.cgi?id=264 "Support jGuard" http://restlet.tigris.org/issues/show_bug.cgi?id=265 Best regards, Jerome > -----Message d'origine----- > De : John Sherwood [mailto:[EMAIL PROTECTED] > Envoyé : mercredi 28 février 2007 22:59 > À : [email protected] > Objet : Re: Acegi and Restlet > > That is where I am stuck - it was the delegation I could not figure > out. What do I use to do this? What objects/methods do I > need to throw > it over to Acegi? > > Valdis Rigdon wrote: > > Extend Guard, and override checkSecret() to delegate to Acegi. (I > > believe you'll have to grab the very latest for this -- if you are > > using RC4, it's a bit more work). For my application I have a > > singleton AcegiGuard bean and attached that to the Router > to protect > > Resources. > > > > John Sherwood wrote: > >> Hi all, > >> > >> Can I get an example of how to get Restlet working with > Acegi? I have > >> them both working individually, but I cannot seem to get them work > >> together. I am new to Restlet, Spring, and Acegi so just > assume I do > >> not know anything :) > >> > >> Thank you, > >> > >> John Sherwood > >> > >> > >

