Metadata-Version: 2.1
Name: aadinspector
Version: 1.0.0
Summary: This package help to validate azure ad jwt token.
Author-email: Dinesh Kushwaha <2kush.dinesh@gmail.com>
License: MIT License        
        Copyright (c) 2022 Dinesh Kushwaha        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.        
Project-URL: Homepage, https://github.com/dinesh-kushwaha/aadinspector
Project-URL: Bug Tracker, https://github.com/dinesh-kushwaha/aadinspector/issues
Keywords: python,azure active directory,jwt,token,validation
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: cryptography (==37.0.4)
Requires-Dist: PyJWT (==2.4.0)
Requires-Dist: requests (==2.28.1)

aadinspector

 This package will help to validate azure b2c jwt token.

## 📝 Table of Contents

- [About](#about)
- [Getting Started](#getting_started)
- [Authors](#authors)

## 🧐 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("62105d2a-48a0-4651-8d84-5a5e197fba03")
    pub_handler.set_name_of_policy("b2c_1a_giadataportal__signup_signin")
    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](https://pypi.org/user/dinesh-pypi/) - Idea & Initial work

See also the list of [contributors](https://github.com/dinesh-kushwaha) who participated in this project.
