feat: add GitLab OIDC login via Streamlit auth
What does this MR do and why?
feat: add GitLab OIDC login via Streamlit auth
- app.py: gate access behind st.login() — students must log in with their GitLab account before reaching the compliance checker
- ui/main.py: show logged-in user name/email and logout button in sidebar
- pyproject.toml: bump streamlit to >=1.42.0, add authlib>=1.3.2
- .streamlit/secrets.toml.example: server config template with correct redirect_uri for projects-compliance-checker.apps.swecha.org
- tests/conftest.py: add st.user/login/logout stubs and fix mock Sidebar to support context manager protocol
Co-Authored-By: Claude Sonnet 4.6 [email protected]
References
Screenshots or screen recordings
| Before | After |
|---|---|
How to set up and validate locally
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.