[ECODP-dev] ckan api call does not work

Bert Van Nuffelen bert.van.nuffelen at tenforce.com
Thu Sep 26 08:53:46 UTC 2013


Hi John,

thanks for the feedback

Bert


2013/9/26 John Glover <john.glover at okfn.org>

> 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> 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
>>
>> Bert.Van.Nuffelen at tenforce.com
>> Office: +32 (0)16 31 48 60
>> Mobile:+32 479 06 24 26
>> skype: bert.van.nuffelen
>>
>> _______________________________________________
>> Ecodp-dev mailing list
>> 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
>
>


-- 
Bert Van Nuffelen

Semantic Technologies Software Architect at TenForce
www.tenforce.be

Bert.Van.Nuffelen at tenforce.com
Office: +32 (0)16 31 48 60
Mobile:+32 479 06 24 26
skype: bert.van.nuffelen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.okfn.org/mailman/private/ecodp-dev/attachments/20130926/05a4f0d0/attachment.html>


More information about the ecodp-dev mailing list