book_server_api.routers.auth module

async book_server_api.routers.auth.login(data: OAuth2PasswordRequestForm = Depends(OAuth2PasswordRequestForm))

This is called as the result of a login form being submitted. If authentication is successful an access token is created and stored in a session cookie. This session cookie is used for all protected routes. The auth_manager is provided by ../session.py which also explains how to setup a protected route.

book_server_api.routers.auth.login_form(request: Request)
async book_server_api.routers.auth.logout(response_class: RedirectResponse)
async book_server_api.routers.auth.register(user: AuthUserValidator) Optional[AuthUserValidator]