OArepo module that adds support for tokens
Project description
oarepo-tokens
OARepo library generating tokens for upload from command-line utility oarepo-s3-cli
Installation
TBD
Configuration
TBD
API
-
POST /access-tokens/status
Returns status of token sent in auth.header.
-
POST /access-tokens/revoke
Revoke token sent in auth.header.
-
POST /<DRAFT_RECORD_PATH>/create_token
Create new token for upload file to draft record.
-
GET /<DRAFT_RECORD_PATH>/access-tokens
List tokens created for uploading to draft record.
-
DELETE /<DRAFT_RECORD_PATH>/access-tokens/<TOKEN_ID>
Revoke token by token_id.
.. Copyright (C) 2021 CESNET.
OARepo-tokens is free software; you can redistribute it and/or
modify it under the terms of the MIT License; see LICENSE file for more
details.
Changes
Version 0.1.0 (released TBD)
- Initial public release.
Version 0.1.2
- Create_token API call rewrited using oarepo-actions.
Version 0.1.3
- revoke_token impl.
- permissions for create_token action added
- sleeps on calls w. invalid token added
Version 0.1.4
- get_by_uuid returns all; disable token_detail
Version 0.1.5
- pid_type test fixed
Version 0.1.6
- versioning typo fixed
Version 0.1.7
- added permission check on create_token
- fix: used canonical_url instead of url_for
Version 0.1.8
- oarepo-actions added to requires + flask ver.limited
Version 0.1.9
- celery task; cleanup script; fixes;
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for oarepo_tokens-0.1.9-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 227b7266acd7c13af7956d90a78ec12c224a0862d532eb9bba757599fd9cecc3 |
|
MD5 | 32ee43946cff3c274bbf0b77a2038103 |
|
BLAKE2b-256 | 9f1235beb000b909f1c039aafb13a47118867f4b110980c556713d5ac12f6bfd |