Skip to main content

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

See also the list of contributors who participated in this project.

Project details


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)

Uploaded Source

Built Distribution

aadinspector-1.1.6-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

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

Hashes for aadinspector-1.1.6.tar.gz
Algorithm Hash digest
SHA256 982587e6dc6a4084811fd3677e64703c79362364d93664cc358bc52c5f334595
MD5 7f95323c8257a3a00850b0337b5a93c9
BLAKE2b-256 f78c06ebbf17a0c9dfa4a314289d4d38984cb172de0ef5fd8156ef9f932e46a8

See more details on using hashes here.

File details

Details for the file aadinspector-1.1.6-py3-none-any.whl.

File metadata

File hashes

Hashes for aadinspector-1.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 e726f3395e2944f7d5826884d7e9c0c5d199727213bf3d44d1a95bcc1e50807f
MD5 2cc85db6e9677a162e220125112f2c1e
BLAKE2b-256 abae1b70a4294a35ae55516bd1111a88c8a8c28ee41aad37d8cd4a12ee9de144

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page