Skip to main content

No project description provided

Project description

Tests

ckanext-vip-portal

Generic access restrictions for anonymous user.

Configure the set or endpoints/URLs that are available for the anonymous user, and redirect to the login page if he attempts to visit non-whitelisted page.

Requirements

Compatibility with core CKAN versions:

CKAN version Compatible?
2.9 yes
2.10 not yet

Installation

To install ckanext-vip-portal:

  1. Install it using pip

    pip install ckanext-vip-portal
    
  2. Add vip_portal to the ckan.plugins setting in your CKAN config file.

Config settings

# Configure endpoint that handles unauthorized page access
# (optional, default: user.login).
ckanext.vip_portal.login_endpoint = auth_ext.login

# Allow anonymous access to all the pages. It basically disables
# current extensions
# (optional, default: false).
ckanext.vip_portal.free_anonymous_access = true

# Allow any authenticated user to visit pages normally
# (optional, default: true).
ckanext.vip_portal.free_authenticated_access = false

# Allow anonymous access to login pages
# (optional, default: true).
ckanext.vip_portal.allow_login = false

# Allow anonymous access to password reset page
# (optional, default: true).
ckanext.vip_portal.allow_password_reset = false

# Allow anonymous access to registration pages
# (optional, default: true).
ckanext.vip_portal.allow_registration = false

# Allow anonymous access to API endpoints
# (optional, default: true).
ckanext.vip_portal.allow_api = false

# Additional endpoints that are accessible by anonymous user
# (optional, default: empty).
ckanext.vip_portal.extra_allowed_endpoints = home.index home.about dataset.search

# Additional paths(URLs) that are accessible by anonymous user
# (optional, default: empty).
ckanext.vip_portal.extra_allowed_paths = / /about /dataset

# Allow anonymous user to access any path that starts with the following prefixes
# (optional, default: empty).
ckanext.vip_portal.extra_allowed_prefixes = /dataset /organization /group /static

# Allow anonymous user to access any path that ends with the following suffixes
# (optional, default: empty).
ckanext.vip_portal.extra_allowed_suffixes = .svg .html .css

Developer installation

To install ckanext-vip-portal for development, activate your CKAN virtualenv and do:

git clone https://github.com/DataShades/ckanext-vip-portal.git
cd ckanext-vip-portal
pip install -e '.[dev]'

License

AGPL

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ckanext-vip-portal-0.0.6.tar.gz (18.8 kB view details)

Uploaded Source

Built Distribution

ckanext_vip_portal-0.0.6-py3-none-any.whl (19.9 kB view details)

Uploaded Python 3

File details

Details for the file ckanext-vip-portal-0.0.6.tar.gz.

File metadata

  • Download URL: ckanext-vip-portal-0.0.6.tar.gz
  • Upload date:
  • Size: 18.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.11.3 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for ckanext-vip-portal-0.0.6.tar.gz
Algorithm Hash digest
SHA256 1b0b83bb2288c0887efc72f731856a0905350dd221c94c66f19fc00770f0c810
MD5 055a2185d8c060d797f0d331693cb28f
BLAKE2b-256 c0d74bf9bc1eed934823ec23f65adec075f36be5faa6190eac88d3bac17bb8ea

See more details on using hashes here.

Provenance

File details

Details for the file ckanext_vip_portal-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: ckanext_vip_portal-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 19.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.11.3 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for ckanext_vip_portal-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 6f2003a3056bc67c714248d5596a146e53f150a135004609655a256bfe44b068
MD5 1414a5be6cef6ec04ee907f6284fc6e0
BLAKE2b-256 0598ede6e99790d0d452a0352938569fd0d755c07b6598ab9aa05cfb99a44af9

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page