Commit Graph

12 Commits

Author SHA1 Message Date
Roland Geider
df894f6161 Merge pull request #2359 from wger-project/feature/version-2.6
Version 2.6
2026-06-17 09:32:23 +02:00
Roland Geider
c68b3e958c Remove unsued settings 2026-06-14 22:12:41 +02:00
Roland Geider
556c43d0ad Consolidate JWT Keys 2026-05-18 17:07:16 +02:00
Roland Geider
e48a6460dc Cleanup and refactor the social auth login code
Provider settings live now completely in the SocialApp.settings field, which
makes this much more flexible as local administrators can choose which providers
they want to support without us having to keep a list in the settings.

The `USE_SOCIAL_AUTH` setting was removed in favor of the WGER_SOCIAL_PROVIDERS
list, which simply contains the desired list of providers.

The setup_social_oauth.py management command was deleted, users are referred to
the documentation, which explains how to save the different entries
2026-05-18 17:05:00 +02:00
pankaj-basnet
b3044dad07 feat(oauth): add USE_GOOGLE_AUTH setting for allauth, auto-derive USE_SOCIAL_AUTH
As suggested by maintainer rolandgeider, add a dedicated USE_GOOGLE_AUTH
setting. USE_SOCIAL_AUTH is now auto-derived (True if any provider is
enabled) rather than being set manually.

This pattern scales cleanly when GitHub and Facebook are added in future
PRs — each provider gets its own flag, and USE_SOCIAL_AUTH stays in sync.

Files changed:
- settings/settings_global.py: add USE_GOOGLE_AUTH to WGER_SETTINGS
  defaults, remove USE_GITHUB_AUTH/USE_FACEBOOK_AUTH, auto-derive
  USE_SOCIAL_AUTH from provider flags
- settings/main.py: read USE_GOOGLE_AUTH from env, remove
  USE_GITHUB_AUTH/USE_FACEBOOK_AUTH env reads, add auto-derive logic
- settings/local_dev.py: set USE_GOOGLE_AUTH=True, remove github/facebook
  flags, add auto-derive logic
- settings/ci.py: set USE_GOOGLE_AUTH=False, remove github/facebook flags
2026-05-18 17:05:00 +02:00
pankaj-basnet
777c3b928d feat(auth): add Google, GitHub and Facebook OAuth support 2026-05-18 17:05:00 +02:00
pankaj-basnet
c572d3e35e fix(auth): hide Google OAuth behind configuration flag
- Add GOOGLE_OAUTH_ENABLED to WGER_SETTINGS in settings_global.py
- Conditionally include socialaccount apps in INSTALLED_APPS
- Wrap dj-rest-auth and allauth social URLs in setting checks
- Update setup_google_oauth command to guard against disabled state
- Add context processor variable to toggle UI login buttons
2026-05-18 17:05:00 +02:00
Roland Geider
42791ff9bd Update to django 6
We also needed to revert django-prometheus to 2.4.0 since 2.4.1 is not compatible with
django 6 anymore, and it seems there's some problems with the status of the package:
https://github.com/django-commons/django-prometheus/issues/494
2026-05-14 14:57:30 +02:00
Roland Geider
dd4336f9c4 Improve test suite speed and remove unused code 2026-05-06 10:37:35 +02:00
Roland Geider
b6b9914beb Cleanup the ci settings 2026-04-13 13:04:13 +02:00
Github-actions
4f7e61f735 Automatic linting 2026-01-11 11:13:23 +00:00
Roland Geider
a8ba6fe2d6 Refactor the way the settings are handled.
Instead of a "create-settings" command, which didn't contain all the options
and was a bit awkward, we now have specific settings used for different things.
2025-12-28 21:32:44 +01:00