- Add custom out-of-scope exception, defaults to `fastapi_login.exceptions.InsufficientScopeException`
py
manager = LoginManager(..., out_of_scope_exception=OutOfScopeException)
- Remove deprecated APIs
From version 1.10.0, the following usages will be no longer available:
py
manager.not_authenticated_exception = NotAuthenticatedException
manager = LoginManager(..., custom_exception=NotAuthenticatedException)
manager.useRequest(app)
manager.user_loader
def load_user(email):
...
Use these instead:
py
manager = LoginManager(..., not_authenticated_exception=NotAuthenticatedException)
manager.attach_middleware(app)
manager.user_loader()
def load_user(email):
...