Ty,
The registration happens using a descriptor file in a "META-INF/services/
org.restlet.engine.security.AuthenticatorHelper" file. See the new
"org.restlet.ext.crypto" extension for an example with HTTP DIGEST and more
authentication schemes.
Best regards,
Jerome Louvel
--
Restlet ~ Founder and Lead developer ~
http://www.restlet.orgNoelios Technologies ~ Co-founder ~
http://www.noelios.com-----Message d'origine-----
De : Ty [mailto:
[hidden email]]
Envoyé : dimanche 1 novembre 2009 22:40
À :
[hidden email]
Objet : RE: Custom AuthenticationHelper
I am also interested in implementing a new authenticator. I am starting by
doing something simple so I can understand how all the restlet code fits
together.
I have created a new Helper based on the HttpBasicHelper. This seemed
reasonably simple. I've looked around to find where the helpers get
registered and all I can find is the list of internal Helpers in the engine
class: registerDefaultAuthentications(). I noticed the
discoverAuthenticators() method but I'm not sure what it's doing.
I also looked throuth the OAuth code and it seemed that the only hook into
restlet is the OAuthHelper extending AuthenticationHelper; although it does
have OAthProvider and OAuthGuard classes, but I didn't notice any code that
links them into the restlet processing pipeline.
I must be missing something pretty fundamental here. Could someone please
put me out of my misery.
Here's my setup:
I have my own project in Eclipse. The restlet library is included in the
build path. I created a new HttpNtlmHelper based on the HttpBasicHelper in
org.restlet.ext.ntlm. I think I need to know how to coerce the
Engine.findHelper() method to find my Helper.
note: this isn't the real thing; it's just for me to get an understanding of
where all the code fits together.
Thanks,
Ty
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=7458&dsMessageId=2413515
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=7458&dsMessageId=2413794