This package help to validate azure ad jwt token.
Project description
aadinspector
This package will help to validate azure b2c jwt token.
📝 Table of Contents
🧐 About
This package will help to validate azure b2c jwt token.
🏁 Getting Started
-
Dependancy & prerequisite
- Python >=3.6 should be installed.
- "cryptography==37.0.4"
- "PyJWT==2.4.0"
- "requests==2.28.1"
-
To Start experimenting this package you need to install it.
pip install aadinspector
# public key code should run only once on app start.
pub_handler= PublicKeyHandler("tenant_id")
pub_handler.set_name_of_policy("name_of_policy")
token="string"
public_key= pub_handler.get_public_key(token)
print(public_key)
# token validation code should run for each request.
jwt_validator = JWTValidator(public_key)
is_valid, token = jwt_validator.validate(token)
print(is_valid)
print(token)
✍️ Authors
- Dinesh Kushwaha - Idea & Initial work
See also the list of contributors who participated in this project.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
aadinspector-1.1.6.tar.gz
(4.7 kB
view details)
Built Distribution
File details
Details for the file aadinspector-1.1.6.tar.gz
.
File metadata
- Download URL: aadinspector-1.1.6.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 982587e6dc6a4084811fd3677e64703c79362364d93664cc358bc52c5f334595 |
|
MD5 | 7f95323c8257a3a00850b0337b5a93c9 |
|
BLAKE2b-256 | f78c06ebbf17a0c9dfa4a314289d4d38984cb172de0ef5fd8156ef9f932e46a8 |
File details
Details for the file aadinspector-1.1.6-py3-none-any.whl
.
File metadata
- Download URL: aadinspector-1.1.6-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e726f3395e2944f7d5826884d7e9c0c5d199727213bf3d44d1a95bcc1e50807f |
|
MD5 | 2cc85db6e9677a162e220125112f2c1e |
|
BLAKE2b-256 | abae1b70a4294a35ae55516bd1111a88c8a8c28ee41aad37d8cd4a12ee9de144 |