Skip to content

Instantly share code, notes, and snippets.

View eodabas's full-sized avatar

Emre Odabas eodabas

  • Velociterm Limited
  • London
View GitHub Profile
@ergo70
ergo70 / cognito_PAM.py
Last active February 25, 2022 20:59
pam-python PAM module for AWS Cognito
import boto3
import jwt
from json import dumps
from requests import get
from botocore import UNSIGNED
from botocore.config import Config
from warrant.aws_srp import AWSSRP
from cryptography.hazmat.primitives import serialization
_PAM_DUMMY_PROMPT = ''