You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
If using this package with the most recent version of cryptography, apps crash due to a change in the hazmat primitives.
To Reproduce
Have the following requirements
fastapi[all]
fastapi-azure-auth
uvicorn
pytest
pip install --no-cache-dir -r requirements.txt
Run the sample "getting started" app uvicorn app:app --reload
Stack trace
...
from fastapi_azure_auth import SingleTenantAzureAuthorizationCodeBearer
File "/home/vcap/deps/0/python/lib/python3.9/site-packages/fastapi_azure_auth/init.py", line 1, in
from fastapi_azure_auth.auth import ( # noqa: F401
File "/home/vcap/deps/0/python/lib/python3.9/site-packages/fastapi_azure_auth/auth.py", line 14, in
from fastapi_azure_auth.openid_config import OpenIdConfig
File "/home/vcap/deps/0/python/lib/python3.9/site-packages/fastapi_azure_auth/openid_config.py", line 7, in
from cryptography.hazmat._types import _PUBLIC_KEY_TYPES as KeyTypes
ModuleNotFoundError: No module named 'cryptography.hazmat._types'
Your configuration
Python 3.9.6
using venv
The text was updated successfully, but these errors were encountered:
Describe the bug
If using this package with the most recent version of cryptography, apps crash due to a change in the hazmat primitives.
To Reproduce
Have the following requirements
fastapi[all]
fastapi-azure-auth
uvicorn
pytest
uvicorn app:app --reload
Stack trace
...
from fastapi_azure_auth import SingleTenantAzureAuthorizationCodeBearer
File "/home/vcap/deps/0/python/lib/python3.9/site-packages/fastapi_azure_auth/init.py", line 1, in
from fastapi_azure_auth.auth import ( # noqa: F401
File "/home/vcap/deps/0/python/lib/python3.9/site-packages/fastapi_azure_auth/auth.py", line 14, in
from fastapi_azure_auth.openid_config import OpenIdConfig
File "/home/vcap/deps/0/python/lib/python3.9/site-packages/fastapi_azure_auth/openid_config.py", line 7, in
from cryptography.hazmat._types import _PUBLIC_KEY_TYPES as KeyTypes
ModuleNotFoundError: No module named 'cryptography.hazmat._types'
Your configuration
Python 3.9.6
using venv
The text was updated successfully, but these errors were encountered: