[ckan-dev] action api problem

Armin Retterath armin.retterath at gmail.com
Mon Nov 14 10:32:56 UTC 2016


hi together,

i added following to the http header:

X-CKAN-API-Key: d469d6af-a2e8-4d35-abe2-17f6d4198822

where d469d6af-a2e8-4d35-abe2-17f6d4198822 is the api key for the default
sysadmin seanh user ;-) ?

armin



2016-11-14 9:51 GMT+01:00 Hendrik Bunke <bunke.hendrik at gmail.com>:

> Hi Armin,
>
> this looks like you did not submit the API key, which authenticates the
> user.
> Have a look at the CKAN docs:
> http://docs.ckan.org/en/latest/api/index.html#authentication-and-api-keys
>
> regards
> hendrik
>
> --On 2016-11-11 14:19, Armin Retterath wrote:
> > hello together,
> >
> > i try to create new organizations with the action api organization_create
> > command as default user seanh under ckan 2.5.2 (ubuntu 14.04).
> > the organization has only id, name, title, description and image_url
> > elements.
> > i get following response:
> >
> > response: {"help": "
> > http://192.168.2.132/api/3/action/help_show?name=organization_create",
> > "success": false, "error": {"message": "Access denied: <function
> > organization_create at 0x7f9d4a66e578> requires an authenticated user",
> > "__type": "Authorization Error"}}
> >
> > what is the problem? have this feature to be activated in the ini file or
> > are there some missing elements for the organization (maybe my user
> itself)
> > ?
> >
> > thanx in advance
> >
> > armin
>
> > _______________________________________________
> > ckan-dev mailing list
> > ckan-dev at lists.okfn.org
> > https://lists.okfn.org/mailman/listinfo/ckan-dev
> > Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>
>
> --
> Dr. Hendrik Bunke
> http://www.hbxt.org
> http://twitter.com/hbunke
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20161114/57adc2a0/attachment-0003.html>


More information about the ckan-dev mailing list