An extension that generates a one-time login link for a user
Project description
ckanext-let-me-in
An extension that generates a one-time login link for a user by its id
, name
or email
.
Use lmi_generate_otl
API action or ckan letmein uli
CLI command to generate an OTL link.
The link will expire in 24h, by default or after it was used.
Requirements
Compatibility with core CKAN versions:
CKAN version | Compatible? |
---|---|
2.8 and earlier | no |
2.9 | not yet |
2.10+ | yes |
Installation
- Use
pip
to install an extension:pip install ckanext-let-me-in
- Add
let_me_in
to theckan.plugins
setting in your CKAN config file.
Config settings
Available configuration options:
# The number in seconds that specifies the OTL link TTL (optional, default: 86400).
ckanext.let_me_in.otl_link_ttl= 3600
Developer installation
To install ckanext-let-me-in for development, activate your CKAN virtualenv and do:
git clone https://github.com/DataShades/ckanext-let-me-in.git
cd ckanext-let-me-in
python setup.py develop
Tests
To run the tests, do:
pytest --ckan-ini=test.ini
License
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_let_me_in-1.0.12.tar.gz
(22.2 kB
view details)
Built Distribution
File details
Details for the file ckanext_let_me_in-1.0.12.tar.gz
.
File metadata
- Download URL: ckanext_let_me_in-1.0.12.tar.gz
- Upload date:
- Size: 22.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc63fe466a2623ef5e090526c58f2c6e5afdba1601c04f58e8b0c58f88113bda |
|
MD5 | 8e532cc56c3bd32e9a23da9edd059295 |
|
BLAKE2b-256 | f900f0d7f718d6f1318747e70f42956f8be3de75bd9d34305cb64069d09b9851 |
File details
Details for the file ckanext_let_me_in-1.0.12-py3-none-any.whl
.
File metadata
- Download URL: ckanext_let_me_in-1.0.12-py3-none-any.whl
- Upload date:
- Size: 24.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3cc53a23b99bfde318385c77e000bca51133e78c3ec1a6e587d08a99a2adac5c |
|
MD5 | 5bcc08fb7c64f1d931b840285ec05272 |
|
BLAKE2b-256 | 8d528a6c26b00ca733defd18ea6355dfbd4c0bc311fbd3ce8d980c8ad99abce7 |