framework icon indicating copy to clipboard operation
framework copied to clipboard

Support private CKAN resources?

Open aivuk opened this issue 2 years ago • 2 comments

If you use CkanControl to access a private package in a CKAN instance it fetch the package successfully:

from frictionless.portals import CkanControl
from frictionless import Package
api = 'SECRET_KEY'

ckan_control = CkanControl(apikey=api)
package = Package('http://localhost:5000/dataset/privatedata', control=ckan_control)

But it fails when you try to fetch a resource from this package because it tries to download it without using the api key:

resource_data = package.resources[0].read_rows()

aivuk avatar Feb 28 '23 14:02 aivuk

Thanks, that's a good catch, as we didn't really designed it for non-open data. It will require some additional development -- I'll mark it as a feature request.

roll avatar Feb 28 '23 18:02 roll