From: Cash Costello <cash.coste...@gmail.com>
Date: Fri, 6 Nov 2009 04:41:35 -0800 (PST)
Local: Fri, Nov 6 2009 7:41 am
Subject: Re: Survey on Elgg's REST api
Phil - add your own user PAM. The API does not set the user
credentials so the default one does not return true. You could use the plugin hook in /services/api/rest.php to add your PAM whenever the REST api is used. On Nov 5, 7:37 am, "Phil.T" <tran....@gmail.com> wrote:
> i dont use the token to get everything in 1 shot: authentification and
> rest/rpc stuff, no waste of time (many transactions) and bandwith > and i plan to get first the GET working, then post user pwd (passing
> data load would also be in the post. hence the idea to use pam-aut-
> how do u think I could I do this ?
> On 4 Nov, 16:26, Cash Costello <cash.coste...@gmail.com> wrote:
> > 1. Passing username and password with GET is a bad idea. The password
> > 2. I recommend using the user token. You first make a call that passes
> > 3. I plan to remove the option passing the username and password on
> > 4. You also have the option of building your own user authentication
> > On Nov 4, 9:39 am, "Phil.T" <tran....@gmail.com> wrote:
> > > Thanks cash for the tip. I updated those files, but something make me
> > > I need to authenticate the user, first with simple GET (without HMAC).
> > > When I use:
> > > But when looking at the usage of pam_auth_userpass($credentials) in
> > > My question is : do I need to correct this ? and initiate credentials
> > > On 22 oct, 14:40, Cash Costello <cash.coste...@gmail.com> wrote:
> > > > Hi, Antoine
> > > > If you're just starting out, I recommend grabbing the latest REST api
> > > > /engine/lib/api.php
> > > > Note that api.php has a hook into Elgg's new unit testing framework
> > > > Cash
> > > > On Oct 22, 5:49 am, Ant- <antoine.raba...@gmail.com> wrote:
> > > > > Hi Cash and everybody.
> > > > > 1) No but it's a project
> > > > > 2) iPhone and adroid application
> > > > > 3) not yet but I will implement it
> > > > > 4) just setting that up right now :)
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||