From 0c337f75b11d624b8e597ac5f3eb34dedc7f3541 Mon Sep 17 00:00:00 2001 From: David Michaels Date: Mon, 14 Oct 2024 11:02:20 -0400 Subject: [PATCH] cryptography version 43.0.1 workaround in cognito code --- foursight_core/react/api/cognito.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/foursight_core/react/api/cognito.py b/foursight_core/react/api/cognito.py index ca05f7b83..558ed6440 100644 --- a/foursight_core/react/api/cognito.py +++ b/foursight_core/react/api/cognito.py @@ -1,6 +1,8 @@ # AWS Cognito authentication support functions. -from cryptography.hazmat.backends.openssl.rsa import _RSAPublicKey as RSAPublicKey +# from cryptography.hazmat.backends.openssl.rsa import _RSAPublicKey as RSAPublicKey +# The above import no longer works with cryptography version 43.0.1; only used for type hint. +RSAPublicKey = object import jwt as jwtlib from jwt import PyJWKClient import requests