REST basically just means HTTP, so the answer is to use HTTP auth, most likely BASIC auth. This can be done two ways:
1) If your apps are fronted by Apache (which they probably are), then you can use Apache's bult-in authorization functionality, the simplist form of which is just to declare users in flat text files. There are probably many other ways to store the user info. 2) You can do the auth inside your app. Globally in Application.dispatchRequest or more granularly in your route class (which is just a DirectAction subclass) in DirectAction.performAction. You just have to read the Authorization header and parse it, then check for the user and password in your database or whatever. I don't believe there is an implementation in Wonder, but if not there should be. On Sat, Oct 4, 2014 at 9:01 AM, Gabor Raz <[email protected]> wrote: > Hi Guys, > > I normally make my own projects with Node.js. Most of them with the > MEAN.IO framework. But I also came in touch with WebObjects / Project > WOnder during my training. > > Now I would like to convert a node application into a wonder application. > And here I have a question. How do I create a authentication via REST and > make my routes only available for authenticated users? > > Thanks in advance > Gabor Raz > > _______________________________________________ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list ([email protected]) > Help/Unsubscribe/Update your Subscription: > > https://lists.apple.com/mailman/options/webobjects-dev/johnthuss%40gmail.com > > This email sent to [email protected] >
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
