1.1.1.1.1.2. book_server_api.routers.auth module¶
- async book_server_api.routers.auth.get_course_students(request: ~starlette.requests.Request, user: ~rsptx.db.models.AuthUserValidator = Depends(RSLoginManager), response_class=<class 'starlette.responses.JSONResponse'>)¶
Get a list of students in a course. This is used by the group submission feature.
- async book_server_api.routers.auth.login(data: OAuth2PasswordRequestForm = Depends(NoneType))¶
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_manageris 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]¶