We need to implement basic user authentication functionality.
Requirements
- Registration page & endpoint
- Fields:
- Login page & endpoint
- Profile page
- Display basic user information
- Logout functionality
Technical details
- Use Django’s built-in user model.
- Create API endpoints (DRF) for registration, login, logout, and profile retrieval.
- Create corresponding Django template pages for registration, login, profile.
- Ensure CSRF protection and session management work correctly for template-based views.
- JWT or session-based auth for API (to be discussed).
Testing
- Write unit tests for:
- Registration (valid / invalid data)
- Login (valid / invalid credentials)
- Accessing profile (authenticated / unauthenticated)
- Logout
Definition of Done
- User can register, log in, view profile, and log out via both API and UI.
- All new code is covered by tests.
- Documentation (docstrings) is provided.
We need to implement basic user authentication functionality.
Requirements
Technical details
Testing
Definition of Done