okta-jwt


Nameokta-jwt JSON
Version 1.3.5 PyPI version JSON
download
home_pagehttps://github.com/adithyasampatoor/okta_jwt
SummaryOkta JWT Access Token verifier
upload_time2018-12-28 20:11:08
maintainer
docs_urlNone
authorAdithya Sampatoor
requires_python
license
keywords
VCS
bugtrack_url
requirements requests python-jose six
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Okta Jwt

Okta JWT Access Token verifier for Python using cached JWKs.

[![version](https://badge.fury.io/py/okta-jwt.svg)](https://badge.fury.io/py/okta-jwt)

Link to PyPi - click [here](https://pypi.org/project/okta-jwt/)

## Installation

```python
	pip install okta_jwt
```

### Usage

To generate a token, you need to pass in `issuer`, `client_id`, `client_secret`, `username` and `password` as parameters
```python
	>>> 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
```python
	>>> 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](http://contributor-covenant.org) code of conduct.

## Authors

* **Adithya Sampatoor**

## License

The Library is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT)
            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/adithyasampatoor/okta_jwt",
    "name": "okta-jwt",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "Adithya Sampatoor",
    "author_email": "adithya.sampatoor@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/76/9e/efa4a38fd49d0ec1ac2ac3c812470f8ffec432fb5cf16f31c77cd1a0436e/okta_jwt-1.3.5.tar.gz",
    "platform": "",
    "description": "# Okta Jwt\n\nOkta JWT Access Token verifier for Python using cached JWKs.\n\n[![version](https://badge.fury.io/py/okta-jwt.svg)](https://badge.fury.io/py/okta-jwt)\n\nLink to PyPi - click [here](https://pypi.org/project/okta-jwt/)\n\n## Installation\n\n```python\n\tpip install okta_jwt\n```\n\n### Usage\n\nTo generate a token, you need to pass in `issuer`, `client_id`, `client_secret`, `username` and `password` as parameters\n```python\n\t>>> from okta_jwt.jwt import generate_token\n\t>>> generate_token(issuer, client_id, client_secret, username, password)\n```\n\nThis generates and returns Okta Access Token.\n\n\nTo 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\n```python\n\t>>> from okta_jwt.jwt import validate_token\n\t>>> validate_token(access_token, issuer, audience, client_ids)\n```\n\nIf the token is valid then it will return the payload.\n\n\n## Running the tests\n\nTo run the unit tests, run\n\n\t$ python -m unittest\n\n### Break down into tests\n\nThe unit tests pretty much covers all the main functionality of the package, like generating the token, Validating the token and Verifying Claims.\n\n## Contributing\n\nBug 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](http://contributor-covenant.org) code of conduct.\n\n## Authors\n\n* **Adithya Sampatoor**\n\n## License\n\nThe Library is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT)",
    "bugtrack_url": null,
    "license": "",
    "summary": "Okta JWT Access Token verifier",
    "version": "1.3.5",
    "project_urls": {
        "Homepage": "https://github.com/adithyasampatoor/okta_jwt"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "769eefa4a38fd49d0ec1ac2ac3c812470f8ffec432fb5cf16f31c77cd1a0436e",
                "md5": "64f1f924dd609af71cb4045edc2c66ba",
                "sha256": "272bf500cc5bb9d04d6f0395989f15207118e9c0d36281476dea8e408614aa8c"
            },
            "downloads": -1,
            "filename": "okta_jwt-1.3.5.tar.gz",
            "has_sig": false,
            "md5_digest": "64f1f924dd609af71cb4045edc2c66ba",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 5060,
            "upload_time": "2018-12-28T20:11:08",
            "upload_time_iso_8601": "2018-12-28T20:11:08.777760Z",
            "url": "https://files.pythonhosted.org/packages/76/9e/efa4a38fd49d0ec1ac2ac3c812470f8ffec432fb5cf16f31c77cd1a0436e/okta_jwt-1.3.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2018-12-28 20:11:08",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "adithyasampatoor",
    "github_project": "okta_jwt",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [
        {
            "name": "requests",
            "specs": []
        },
        {
            "name": "python-jose",
            "specs": []
        },
        {
            "name": "six",
            "specs": []
        }
    ],
    "lcname": "okta-jwt"
}
        
Elapsed time: 3.33994s