Skip to content

Commit

Permalink
cryptography version 43.0.1 workaround in cognito code
Browse files Browse the repository at this point in the history
  • Loading branch information
dmichaels-harvard committed Oct 14, 2024
1 parent 1930af6 commit 0c337f7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion foursight_core/react/api/cognito.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 0c337f7

Please sign in to comment.