Easy and secure implementation of Azure Entra ID (previously AD) for your FastAPI APIs 🔒 B2C, single- and multi-tenant support.
Features:
B2CMultiTenantAuthorizationCodeBearer
class which simplifies a multi-tenant B2C setup. ( #93 @kristiqntashev )Fix:
tid
optional in the User model to support tokens sent from a B2C single-tenant ( #96 @marcinplatek )Github actions:
Features
Features
openid_config_url
in AzureAuthorizationCodeBearerBase to add support for B2C tenants. ( #48 @robteeuwen and @JonasKs )python-jose
to load JWK, instead of x5c
-keys loaded with cryptography
. This add support for B2C tenants ( #48 @robteeuwen and @JonasKs )Other
Fixes
cryptography
version requirement, adding support for cryptography
version 36, and future major bumps. ( @JonasKs, 63868904e9c7c2f3da31cdeefebec4884da402b4)Bugfix
collections.abc.Callable
, so this typing import has been changed to typing.Callable
( @ravaszf and @JonasKs #50 )Features
auto_error
flag/setting. When set to False
an invalid token will return None
instead of raising exception. (Â @bkmetzler and @JonasKs #44 )
Fixes
Fixes
Python3.10
and FastAPI==0.70.0
to pipeline matrix ( @jonasks #28 )Fixes
cryptography
requirement to ^35.0.0
and fix imports ( #26 @bmoore )