Skip to main content

Async Okta Jwt

Async Okta JWT Access Token verifier for Python using cached JWKs.

Based on okta_jwt by Adithya Sampatoor

Link to PyPi - click here

Installation

	pip install async_okta_jwt

Usage

To generate a token, you need to pass in issuer, client_id, client_secret, username and password as parameters

	>>> from async_okta_jwt.jwt import generate_token
	>>> await generate_token(issuer, client_id, client_secret, username
, password)

This generates and returns Okta Access Token.

To Validate the Access Token, you need to pass in the access_token, issuer, audience and client_ids as parameters. You can pass in multiple Client IDs

	>>> from async_okta_jwt.jwt import validate_token
	>>> await validate_token(access_token, issuer, audience, client_ids)

If the token is valid then it will return the payload.

Running the tests

To run the unit tests, run

$ python -m unittest

Break down into tests

The unit tests pretty much covers all the main functionality of the package, like generating the token, Validating the token and Verifying Claims.

Contributing

Bug reports and Pull Requests(PR's) are welcome on GitHub at https://github.com/ypukhta/async_okta_jwt. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

Authors

  • Adithya Sampatoor
  • Yevgen Pukhta

License

The Library is available as open source under the terms of the MIT License

Metadata

Release files for async-okta-jwt 1.3.5.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for async-okta-jwt 1.3.5.1
File Size Uploaded Provenance
async_okta_jwt-1.3.5.1.tar.gz 5.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for async-okta-jwt 1.3.5.1
File Interpreter ABI Platform
async_okta_jwt-1.3.5.1-py3-none-any.whl Python 3 none any Details

Total release size: 12.5 kB

Release files / async_okta_jwt-1.3.5.1.tar.gz

Download URL async_okta_jwt-1.3.5.1.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f7ce74f72a09468f0f386da465d1ef14395be612a3a9f8cdcd6bee229b27fcdc
BLAKE2b-256 checksum
How to use checksums
29982a2cef82ce23e73ce451648847b309f07b6b3c1633c0ea39a078dfaf8969
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.3.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.7.8

Release files / async_okta_jwt-1.3.5.1-py3-none-any.whl

Download URL async_okta_jwt-1.3.5.1-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
60a2b71a806d58b35c7942a934135aebb50e9bcf2df059e797acd73afed3fc3a
BLAKE2b-256 checksum
How to use checksums
c5195187d904e13b20ed3ad1bc6612817e9b352ad1cb289e7fd954c0e8037000
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.3.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.7.8

Security for async-okta-jwt 1.3.5.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.3.5.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page