Roland Geider
d7f5772ce7
Simplify the db config
...
This was breaking dev environments that were using sqlite
See https://github.com/wger-project/docker/issues/158
2026-07-28 21:27:55 +02:00
Roland Geider
990770f8ea
Allow configuring USE_X_FORWARDED_HOST
...
This is sometimes needed when using a generic OIDC connector
2026-07-17 22:03:42 +02:00
Roland Geider
20c077a215
Make temp variables lower case
...
Otherwise, the value could land in Django's email reporting
2026-06-24 12:43:33 +02:00
Roland Geider
3dc83e1759
Harden the jwt token strategy against None-Users
2026-06-24 12:43:32 +02:00
Roland Geider
bb21c47c7b
Bump default EXERCISE_CACHE_TTL
2026-06-19 14:24:50 +02:00
Github-actions
c78eeaeeea
Automatic linting
2026-06-17 08:09:31 +00:00
Roland Geider
360580e0ab
Add missing PS_STORAGE_PG_URI setting...
2026-06-17 10:09:13 +02:00
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
63e8f9c86b
Allow linking the user's account to a social provider
2026-06-15 14:34:06 +02:00
Roland Geider
c68b3e958c
Remove unsued settings
2026-06-14 22:12:41 +02:00
Roland Geider
9421e90b04
Set a maximum limit for pagination sizes
2026-06-14 22:12:41 +02:00
Roland Geider
6658b28746
Change used SESSION_ENGINE
...
This is needed to properly handle the long-lived tokens
2026-06-14 14:22:42 +02:00
Roland Geider
0ff2e5d9ea
Add throttling for exercise creation
2026-06-14 12:44:14 +02:00
Roland Geider
6a5ab0696b
Generate and work with keys with pyjwt, python_jose is not needed anymore
2026-06-04 13:52:31 +02:00
Roland Geider
3cd525392e
Merge feature/more-allauth into feature/version-2.6
...
# Conflicts:
# CHANGELOG.md
# pyproject.toml
# uv.lock
# wger/core/api/serializers.py
# wger/core/forms.py
# wger/core/tests/test_user_login.py
# wger/core/views/user.py
2026-05-27 16:30:16 +02:00
Roland Geider
8ff749d9d5
Merge powersync into feature/version-2.6
...
# Conflicts:
# CHANGELOG.md
2026-05-27 16:23:36 +02:00
Roland Geider
5c2707b000
Remove the /api/v2/register/ endpoint as well
2026-05-24 19:31:56 +02:00
Roland Geider
1f7f40539f
Merge branch 'master' into fix/ingredient-thumbnails
2026-05-22 12:22:26 +02:00
Roland Geider
2ad2dec5a1
Add translation file for Macedonian
...
There is already some translation made for the frontend
2026-05-22 11:23:44 +02:00
Roland Geider
4bb74414c8
Add Romanian to language fixture
...
The translation already existed...
2026-05-22 11:23:44 +02:00
Roland Geider
556c43d0ad
Consolidate JWT Keys
2026-05-18 17:07:16 +02:00
Roland Geider
2015824450
Remove SOCIALACCOUNT_PROVIDERS, this is configured in the DB
2026-05-18 17:07:15 +02:00
Roland Geider
79fe03c855
Remove dj-rest-auth, this wasn't used anymore
2026-05-18 17:07:15 +02:00
Roland Geider
3431ea5fba
Fix tests and post-rebase cleanup
2026-05-18 17:07:15 +02:00
Roland Geider
a21223a807
Allow users to manually generate JWT tokens
2026-05-18 17:05:00 +02:00
Roland Geider
0473afe7c6
Start adding the allauth headless app for API authentication
2026-05-18 17:05:00 +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
pankaj-basnet
10e26e40d2
Feat: Implement dj-rest-auth for Google OAuth API endpoints
...
- Add dj-rest-auth to dependencies
- Register SocialLoginView for Google OAuth callback via REST
- Map dj-rest-auth URLs in wger/urls.py for mobile/headless auth
- Maintain compatibility with existing allauth template-based login
2026-05-18 17:05:00 +02:00
pankaj-basnet
73fc3c6bc6
Feat: Implement Google OAuth using django-allauth for user authentication
2026-05-18 17:04:59 +02:00
Roland Geider
51510bdb97
Add two-factor authentication
2026-05-18 17:04:59 +02:00
Roland Geider
b4cf3d47ac
Replace the registration view with allauth's
2026-05-18 17:04:59 +02:00
Roland Geider
a19f3bdeb1
Replace the login view with allauth's
2026-05-18 17:04:59 +02:00
Roland Geider
ae767543ed
Move the email changing logic to allauth
...
This also takes care of having to deal with the data of two forms in the prefs
2026-05-18 17:04:59 +02:00
Roland Geider
a9b96bf7d0
Replace our own EmailAuthBackend with allauth's AuthenticationBackend
2026-05-18 17:04:59 +02:00
Roland Geider
cbb78c1e5c
Merge remote-tracking branch 'origin/master' into powersync
2026-05-18 16:54:49 +02:00
Roland Geider
a9d4b29a89
Read the PS_DATABASE_URI variable, if set
2026-05-18 15:04:33 +02:00
Roland Geider
af1aeee204
Move the email changing logic to allauth
...
This also takes care of having to deal with the data of two forms in the prefs
# Conflicts:
# settings/settings_global.py
Fixes #2342
2026-05-18 10:58:45 +02:00
Roland Geider
9d705eef3e
Remove unused thumbnail sizes
...
These were not being used and were using many GB on the official server
2026-05-17 22:11:17 +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
5e53249211
Merge remote-tracking branch 'origin/master' into powersync
...
# Conflicts:
# CHANGELOG.md
# uv.lock
# wger/manager/models/log.py
# wger/manager/models/session.py
2026-05-13 21:15:32 +02:00
Roland Geider
f3cdf9f61d
Fix links to readthedocs
2026-05-13 19:51:23 +02:00
Github-actions
73841a181d
Automatic linting
2026-05-08 13:21:35 +00:00
Roland Geider
a33f47a1a7
Refactor and improve jwt and regular api key handling
2026-05-08 15:21:19 +02:00
Roland Geider
dd4336f9c4
Improve test suite speed and remove unused code
2026-05-06 10:37:35 +02:00
Roland Geider
f1950c5345
Simplify the powersync handlers by registering the individual ones
2026-05-02 19:04:36 +02:00
Roland Geider
72abb103b4
Set default URL for SYNC_INGREDIENTS_DUMP_URL in settings
...
This is more robust since currently the sync URL is made from a local setting
which can be changed (this is a todo for another day)
2026-04-28 17:20:48 +02:00
Roland Geider
00eb981945
Add throttling for ingredient endpoints to protect against high load
2026-04-28 11:59:18 +02:00