TkTech / ckanext-cloudstorage

Implements support for resource storage against multiple popular providers via apache-libcloud (S3, Azure Storage, etc...)
MIT License
35 stars 55 forks source link

Add Secure URL support for S3 #1

Closed TkTech closed 8 years ago

TkTech commented 8 years ago

This seems extremely trivial to add, and will require boto as an additional dependency:

    c = S3Connection(access_key, secret_key)
    return c.generate_url(
        expires_in=long(expiry),
        method='GET',
        bucket=bucket,
        key=path,
        query_auth=True,
        force_http=(not https)
    )
TkTech commented 8 years ago

Done!