[ECODP-dev] ckan api call does not work
Dimitrios Mexis
dimitrios.mexis at tenforce.com
Thu Sep 26 10:30:54 UTC 2013
Thank you John,
indeed from what you replied, that I would expect too. But for example,
REST calls: package_create and package_update worked.
Best
Dimitrios
On 26/09/2013 12:26, John Glover wrote:
> Hi Dimitrios,
>
> More details can be found here [1]. I do not fully understand your
> question, but I would expect this to effect all POST requests where
> authorization is required. Was this not the case?
>
> [1]
> https://code.google.com/p/modwsgi/wiki/ConfigurationDirectives#WSGIPassAuthorization
>
> Regards,
> John
>
>
> On 26 September 2013 11:04, Dimitrios Mexis
> <dimitrios.mexis at tenforce.com <mailto:dimitrios.mexis at tenforce.com>>
> wrote:
>
> 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 <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 <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/d7e0524b/attachment.html>
More information about the ecodp-dev
mailing list