Skip to main content

Okta Jwt

Okta JWT Access Token verifier for Python using cached JWKs.

version

Link to PyPi - click here

Installation

	pip install okta_jwt

Usage

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

	>>> from okta_jwt.jwt import generate_token
	>>> 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 okta_jwt.jwt import validate_token
	>>> 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/adithyasampatoor/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

License

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

Metadata

Release files for okta-jwt 1.3.5

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

Source distribution (sdist)

Source distribution for okta-jwt 1.3.5
File Size Uploaded Provenance Actions
okta_jwt-1.3.5.tar.gz 5.1 kB Without provenance Details for okta_jwt-1.3.5.tar.gz

Release files / okta_jwt-1.3.5.tar.gz

Download URL okta_jwt-1.3.5.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
272bf500cc5bb9d04d6f0395989f15207118e9c0d36281476dea8e408614aa8c
BLAKE2b-256 checksum
How to use checksums
769eefa4a38fd49d0ec1ac2ac3c812470f8ffec432fb5cf16f31c77cd1a0436e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.18.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0

Security for okta-jwt 1.3.5

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.

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