oarepo-tokens

OArepo module that adds support for tokens


Keywords
invenio, oarepo, tokens
License
MIT
Install
pip install oarepo-tokens==0.1.10

Documentation

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.