[ECODP-dev] ckan api call does not work

Dimitrios Mexis dimitrios.mexis at tenforce.com
Thu Sep 26 09:04:22 UTC 2013


Hi John,

can you give us more details on what this flags do ?

I don't understand, how does that affect this case of POST-ing this 
command, but does not affect the rest of the Rest API calls where an API 
key is necessity ?

Regards
Dimitrios

On 26/09/2013 10:50, John Glover wrote:
> Hi Bert,
>
> This issue should now be resolved. It seems that someone at TenForce 
> had commented out the following line in the Apache config:
>
> WSGIPassAuthorization On
>
> As noted in a comment above this line, this needs to be enabled in 
> order to authenticate users via the API, so I have uncommented it and 
> restarted Apache.
>
> I don't think that this is the cause of your other issue however.
>
> Regards,
> John
>
>
> On 25 September 2013 17:33, Bert Van Nuffelen 
> <bert.van.nuffelen at tenforce.com 
> <mailto:bert.van.nuffelen at tenforce.com>> wrote:
>
>     Hi John,
>
>     the next call fails with an authorization error, although I take
>     the api key from the sysadmin user api.
>
>     curl -X POST "http://localhost/data/api/action/member_create" -d
>     "{\"id\": \"cnect\", \"object\": \"bert\", \"object_type\":
>     \"user\", \"capacity\": \"editor\"}" -H "Authorization: 
>     92861889-a030-4ac8-b887-46495a740ebc"
>
>     Bert
>
>
>     -- 
>     Bert Van Nuffelen
>
>     Semantic Technologies Software Architect at TenForce
>     www.tenforce.be <http://www.tenforce.be>
>
>     Bert.Van.Nuffelen at tenforce.com <mailto:Bert.Van.Nuffelen at tenforce.com>
>     Office: +32 (0)16 31 48 60 <tel:%2B32%20%280%2916%2031%2048%2060>
>     Mobile:+32 479 06 24 26 <tel:%2B32%20479%2006%2024%2026>
>     skype: bert.van.nuffelen
>
>     _______________________________________________
>     Ecodp-dev mailing list
>     Ecodp-dev at lists.okfn.org <mailto:Ecodp-dev at lists.okfn.org>
>     http://lists.okfn.org/mailman/listinfo/ecodp-dev
>
>
>
>
> _______________________________________________
> Ecodp-dev mailing list
> Ecodp-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ecodp-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.okfn.org/mailman/private/ecodp-dev/attachments/20130926/6022b8c8/attachment.html>


More information about the ecodp-dev mailing list