Skip to main content

App for the creation, signing, and decoding of various access tokens

Project description

token-utils

PyPI CI Codecov Documentation Supported Python versions License status-badge

Purpose

App for the creation, signing, and decoding of various access tokens

TODO: The README.rst file should start with a brief description of the repository and its purpose. It should be described in the context of other repositories under the openedx organization. It should make clear where this fits in to the overall Open edX codebase and should be oriented towards people who are new to the Open edX project.

Getting Started

Developing

One Time Setup
# Clone the repository
git clone git@github.com:openedx/token-utils.git
cd token-utils

# Set up a virtualenv using virtualenvwrapper with the same name as the repo and activate it
mkvirtualenv -p python3.8 token-utils
Every time you develop something in this repo
# Activate the virtualenv
workon token-utils

# Grab the latest code
git checkout main
git pull

# Install/update the dev requirements
make requirements

# Run the tests and quality checks (to verify the status before you make any changes)
make validate

# Make a new branch for your changes
git checkout -b <your_github_username>/<short_description>

# Using your favorite editor, edit the code to make your change.
vim ...

# Run your new tests
pytest ./path/to/new/tests

# Run all the tests and quality checks
make validate

# Commit all your changes
git commit ...
git push

# Open a PR and ask for review.

Deploying

TODO: How can a new user go about deploying this component? Is it just a few commands? Is there a larger how-to that should be linked here?

PLACEHOLDER: For details on how to deploy this component, see the deployment how-to

Getting Help

Documentation

PLACEHOLDER: Start by going through the documentation. If you need more help see below.

(TODO: Set up documentation)

More Help

If you’re having trouble, we have discussion forums at https://discuss.openedx.org where you can connect with others in the community.

Our real-time conversations are on Slack. You can request a Slack invitation, then join our community Slack workspace.

For anything non-trivial, the best path is to open an issue in this repository with as many details about the issue you are facing as you can provide.

https://github.com/openedx/token-utils/issues

For more information about these options, see the Getting Help page.

License

The code in this repository is licensed under the AGPL 3.0 unless otherwise noted.

Please see LICENSE.txt for details.

Contributing

Contributions are very welcome. Please read How To Contribute for details.

This project is currently accepting all types of contributions, bug fixes, security fixes, maintenance work, or new features. However, please make sure to have a discussion about your new feature idea with the maintainers prior to beginning development to maximize the chances of your change being accepted. You can start a conversation by creating a new issue on this repo summarizing your idea.

The Open edX Code of Conduct

All community members are expected to follow the Open edX Code of Conduct.

People

The assigned maintainers for this component and other project details may be found in Backstage. Backstage pulls this data from the catalog-info.yaml file in this repo.

Reporting Security Issues

Please do not report security issues in public. Please email security@tcril.org.

Change Log

Unreleased

[0.3.0] - 2025-06-11

Changed

  • Replaced pyjwkest package with pyjwt for JWT token handling

[0.2.1] - 2022-12-16

Added

  • Fixed changelog formatting error

[0.2.0] - 2022-12-15

Added

  • Added API function to sign access token

  • Added API function to unpack access token

[0.1.0] - 2022-08-23

Added

  • First release on PyPI.

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

edx_token_utils-0.3.1.tar.gz (22.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

edx_token_utils-0.3.1-py2.py3-none-any.whl (22.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file edx_token_utils-0.3.1.tar.gz.

File metadata

  • Download URL: edx_token_utils-0.3.1.tar.gz
  • Upload date:
  • Size: 22.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for edx_token_utils-0.3.1.tar.gz
Algorithm Hash digest
SHA256 8af8ffa0beef6cafc23cd5de7230956ca636b1ce2c3ac36fbc682dfd0b053b31
MD5 19f900249ba1661c5e9113f1dd9b7c7e
BLAKE2b-256 084034ffc642fd9f22dfc61c41a70a6e4f15639e2bd73df9e72bebdfbd823db0

See more details on using hashes here.

File details

Details for the file edx_token_utils-0.3.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for edx_token_utils-0.3.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 6374dd1716027b1fcbf8217e0796d0ad26db93c61a11e147b94ae6c75778cf6e
MD5 4029158ea9544e6c33b4afc400fbe475
BLAKE2b-256 7339bdaf546275816a43aa9bdafea63ac7b72d5a429eea6f0f988699c35f5e93

See more details on using hashes here.

Supported by

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