app.users¶
Attributes¶
Classes¶
Mixin for parsing and validating Id of type UUID. |
Functions¶
|
|
|
|
|
|
|
Module Contents¶
- app.users.SECRET¶
- class app.users.UserManager(user_db: fastapi_users.db.BaseUserDatabase[fastapi_users.models.UP, fastapi_users.models.ID], password_helper: fastapi_users.password.PasswordHelperProtocol | None = None)¶
Bases:
fastapi_users.UUIDIDMixin,fastapi_users.BaseUserManager[app.db.User,uuid.UUID]Mixin for parsing and validating Id of type UUID.
- reset_password_token_secret¶
- verification_token_secret¶
- async on_after_register(user: app.db.User, request: fastapi.Request | None = None)¶
Perform logic after successful user registration.
You should overload this method to add your own logic.
- Parameters:
user – The registered user
request – Optional FastAPI request that
triggered the operation, defaults to None.
- async on_after_forgot_password(user: app.db.User, token: str, request: fastapi.Request | None = None)¶
Perform logic after successful forgot password request.
You should overload this method to add your own logic.
- Parameters:
user – The user that forgot its password.
token – The forgot password token.
request – Optional FastAPI request that
triggered the operation, defaults to None.
- async on_after_request_verify(user: app.db.User, token: str, request: fastapi.Request | None = None)¶
Perform logic after successful verification request.
You should overload this method to add your own logic.
- Parameters:
user – The user to verify.
token – The verification token.
request – Optional FastAPI request that
triggered the operation, defaults to None.
- async app.users.get_user_manager(user_db: fastapi_users.db.SQLAlchemyUserDatabase = Depends(get_user_db))¶
- app.users.bearer_transport¶
- app.users.get_jwt_strategy() fastapi_users.authentication.JWTStrategy[fastapi_users.models.UP, fastapi_users.models.ID]¶
- app.users.auth_backend¶
- app.users.fastapi_users¶
- app.users.current_active_user¶
- app.users.router¶
- async app.users.register(request: fastapi.Request)¶
- async app.users.login(request: fastapi.Request)¶