On Tue, 2007-05-06 at 19:56 +0000, mitch wrote: > Hi - > > How do most people handle the authentication for REST interfaces done > with TG? Do you just use the same identity stuff used for the HTML > web pages? > > I guess I would sort of like to be able to use identity for normal > user access but have a separate authentication mechanism for my REST > interface and I'm having a little trouble figuring out how to > accomplish that. And, given that I don't really see any similar > questions on the forum I'm also wondering if I'm just thinking about > this the wrong way.
Ok, I do not know if I am doing it *right* but what I have done is put all my restful methods in a subcontroller that subclasses secure resource. Seems to take the hassle out of it. I don't see why you couldn't also make an identity group associated with your restful resources. I too am curious about the correct way though! Iain --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears?hl=en -~----------~----~----~----~------~----~------~--~---

