0.5.0 (2022-03-11)
- Make oauth2 dependencies optional
- Make oauth2 dependencies optional (e0db0f4)
- Document new extra for oauth2 support (73e1696)
- Update changelog to conform to release-please format (c9bfb16)
0.3.1 (2021-03-29)
- Handle permission overrides iterators that are exhaustable
- Ensure that a string permission override is always equal to
*
0.3.0 (2021-03-26)
- OAuth2 and OIDC can now be enabled by just passing an OIDC discovery URL to
FastAPISecurity.init_oauth2_through_oidc
- Cached data is now used for JWKS and OIDC endpoints in case the "refresh requests" fail.
UserPermission
objects are now created viaFastAPISecurity.user_permission
.FastAPISecurity.init
was split into three distinct methods:.init_basic_auth
,.init_oauth2_through_oidc
and.init_oauth2_through_jwks
.- Broke out the
permission_overrides
argument from the old.init
method and added a distinct method for adding new overridesadd_permission_overrides
. This method can be called multiple times. - The dependency
FastAPISecurity.has_permission
andFastAPISecurity.user_with_permissions
has been replaced byFastAPISecurity.user_holding
. API is the same (takes a variable number of UserPermission arguments, i.e. compatible with both). - Remove
app
argument to theFastAPISecurity.init...
methods (it wasn't used before) - The global permissions registry has been removed. Now there should be no global mutable state left.