Skip to content

Instantly share code, notes, and snippets.

Thiago Papageorgiou tmpapageorgiou

  • Lululemon
  • Vancouver, Canada
Block or report user

Report or block tmpapageorgiou

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@tmpapageorgiou
tmpapageorgiou / jwt_validation3.py
Last active Dec 10, 2018
Using modulus and expoent directly to validate azure ad jwt token
View jwt_validation3.py
import jwt
import requests
import base64
from jose.utils import base64url_decode
from cryptography.x509 import load_pem_x509_certificate
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives.asymmetric.rsa import RSAPublicNumbers
from cryptography.hazmat.primitives import serialization
You can’t perform that action at this time.