This commit enhances the readability of the settings.py file by formatting lists and dictionary entries across multiple lines, and aligns the usage of quotation marks to ensure consistency (' to "). It simplifies the STATICFILES_DIRS and removes unnecessary whitespace, making the file cleaner and more maintainable. Additionally, it consolidates AUTH_PASSWORD_VALIDATORS to eliminate duplication. These changes not only make the codebase more uniform but also improve the configuration management process by making the settings easier to navigate and modify. Moreover, it adjusts the database configuration setup for MySQL/MariaDB and SQLite to use consistent dict key quotes, aiding in the clarity and readability of database configuration blocks. This effort streamlines future development and debugging by providing a more structured and intuitive settings file.
No specific issues are addressed directly in this commit, but it lays the groundwork for a more maintainable and error-free codebase.
Introduce conditional session refresh middleware addition based on new 'SessionValidity' config option. This change ensures that the OIDC session refresh middleware is only appended to the Django settings when a valid session expiry period is configured, enhancing the flexibility and configurability of authentication sessions. The expiry time is converted from minutes to seconds to align with OIDC_RENEW_ID_TOKEN_EXPIRY_SECONDS requirements.