mirror of
https://github.com/suitenumerique/django-lasuite
synced 2026-04-25 17:15:14 +02:00
cc690ae9d2323d00fc3f2ca2db6380db68846da7
The RefreshOIDCAccessToken middleware was checking for `oidc_token_expiration` in the session, but mozilla-django-oidc sets `oidc_id_token_expiration`. This caused the middleware to always think the token was expired (defaulting to 0), triggering unnecessary token refreshes on every request. This fix aligns the session key name with mozilla-django-oidc's convention. Fixes suitenumerique/messages#487
Django La Suite
A Django library for the common requirement for the "La Suite numérique" projects.
Installation
pip install django-lasuite
Quick Start
To be documented with the first implementations.
Development
Requirements
For this project, we use uv Python package manager.
Please follow the installation guidelines on the uv documentation.
Setup
# Clone the repository
git clone https://github.com/suitenumerique/django-lasuite.git
cd django-lasuite
# Install development dependencies
make install-dev
Testing
make test
Code Quality
make lint
License
MIT License
Languages
Python
99%
Makefile
0.9%