3.0.0 - Rewrite, v2 token support, single- and multi-tenant support
This release contains breaking changes for how to setup your application, but also a bunch of new features.
The new documentation contains a full tutorial on how to configure Azure AD and FastAPI for both single- and multi-tenant applications.
Features
- Add
v2
token support (and default) for single-tenant applications. - Full multi-tenant support
- Option to provide a callable which returns valid
iss
(issuers), for those who has multi-tenant applications, but only for specific tenants
- Option to provide a callable which returns valid
Other
- User object is reworked, now also contain
access_token
for easier Azure Graph implementation - Add support for denying requests with wrong scopes, when
Securiy()
is used (an alternativ toDepends()
) - Moved
InvalidAuth
toexceptions.py
- Documentation for everything from role checks, guest users, locking down tenants etc.
- No longer inheriting
OAuth2AuthorizationCodeBearer
, solving mypy errors. - Rename
provider_config.py
toopenid_config.py
andProviderConfig()
toOpenIdConfig()
- Removal of pre-instance of
provider_config
due to OpenAPI authorization URL issues. This is now instanced onSingleTenantAzureAuthorizationCodeBearer
orMultiTenantAzureAuthorizationCodeBearer
.