Commit Graph

1013 Commits

Author SHA1 Message Date
Oliver Falk
c36d0fb808 Merge branch 'devel' into 'master'
Merge devel for updating the Bluesky test handles

See merge request oliver/ivatar!244
2025-05-06 14:25:41 +02:00
Oliver Falk
771a386bf4 Change to the libravatar handle 2025-05-06 13:17:31 +02:00
Oliver Falk
c109b70901 Merge branch 'devel' into 'master'
Bluesky integration and Fedora OIDC integration (because OpenID is going to be deprecated)

See merge request oliver/ivatar!243
2025-05-06 11:55:10 +02:00
Oliver Falk
b8996e7b00 Ensure we're sourcing the venv 2025-04-16 09:30:03 +02:00
Oliver Falk
184f3eb7f7 Use latest version from GIT, as it contains some fixes (by us) 2025-04-16 08:57:54 +02:00
Oliver Falk
27e3751776 Use newer Fedora version (investigating even newer soon) and change the registry 2025-04-16 08:57:22 +02:00
Oliver Falk
e3b0782082 Merge branch 'oidc' into 'devel'
Add support for OIDC authentication with Fedora

See merge request oliver/ivatar!242
2025-04-15 11:10:30 +00:00
Aurélien Bompard
5a0aa4838c Disable caching in the tests
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2025-04-07 11:03:33 +02:00
Aurélien Bompard
bbacd413ca Email validation fails on some random TLDs
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2025-04-07 11:03:33 +02:00
Aurélien Bompard
99b4fdcbcd Add support for OIDC authentication with Fedora
This adds support for authenticating with Fedora's OpenID Connect (OIDC) provider.

Existing users will be matched by email address, they should be able to use the new authentication method transparently.

This requires getting a `client_id` and a `client_secret` from Fedora Infra, see `INSTALL.md`.

Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2025-04-07 11:03:33 +02:00
Oliver Falk
c948f515e0 Remove mysqlclient - we highly recommend using PostgreSQL anyway and for dev, SQLite should be sufficient for most cases 2025-02-27 15:21:21 +01:00
Oliver Falk
8dd29e872d Removeprefix isn't available in older Python versions, replace with a while, stripping all @ and eliminate the need for this function 2025-02-26 09:25:47 +01:00
Oliver Falk
4f5f498da8 Comment out all these tests, as they all fail with the same issue 2025-02-13 15:30:34 +01:00
Oliver Falk
6c4d928a1f We still have this particular test failing under some circumstances (esp. during CI) 2025-02-13 15:09:19 +01:00
Oliver Falk
498ab7aa69 Switch return order for better readability 2025-02-13 15:07:48 +01:00
Oliver Falk
e90604a8d3 Code cleanup/refactoring 2025-02-10 16:54:28 +01:00
Oliver Falk
4a892b0c4c Lots of code cleanup, no functionality change 2025-02-10 13:27:48 +01:00
Oliver Falk
04a39f7693 Bump version - new feature deserves it 2025-02-10 10:59:24 +01:00
Oliver Falk
715725f7c9 Merge branch 'bluesky' into 'devel'
UX enhancements for Bluesky

See merge request oliver/ivatar!241
2025-02-10 09:57:55 +00:00
Oliver Falk
b86e211adc UX enhancements for Bluesky 2025-02-10 09:57:54 +00:00
Oliver Falk
6b24a7732b Merge bluesky fixes 2025-02-08 15:08:53 +01:00
Oliver Falk
488206f15b Some fixes for normalizing Bluesky handle + better error catching 2025-02-08 15:07:35 +01:00
Oliver Falk
b12b5df17a Reduce version requirement. Tested with 4.2.16 - still works fine 2025-02-07 15:44:15 +01:00
Oliver Falk
60ee28270a Merge branch 'devel' into bluesky 2025-02-07 14:51:56 +01:00
Oliver Falk
fe1113df06 Merge branch 'master' into devel 2025-02-07 14:51:34 +01:00
Oliver Falk
ad79c414da Merge branch 'bluesky' into 'devel'
Refactor: Centralize URL handling and add Bluesky integration

See merge request oliver/ivatar!240
2025-02-07 11:34:24 +00:00
Oliver Falk
3aaaac51f0 Bluesky integration
* Centralize the our urlopen for consistency.
* Fix a few tests
2025-02-07 11:34:24 +00:00
Oliver Falk
56780cba69 Merge branch 'devel' into 'master'
Move latest developments up the chain into production

See merge request oliver/ivatar!239
2025-02-07 10:43:37 +00:00
Oliver Falk
dcbd2c5df5 Patch release - no major changes
Testing fixes and stabilization
Test improvement / speed up
PostgreSQL side container for building
2025-02-07 10:43:37 +00:00
Oliver Falk
0a0a96ab6e Commit a few tests for Bluesky, now that they are in shape 2025-02-07 08:44:13 +01:00
Oliver Falk
22f9dac816 Reschuffle config slightly to ensure config_local is really processed at the end and fetch Bluesky creds from env (mainly for CI/CD purpose 2025-02-03 15:48:16 +01:00
Oliver Falk
433bf4d3e2 Put Bluesky tests into separate file, as the existing test class is already too large 2025-01-31 16:11:13 +01:00
Oliver Falk
6e0bc487cd Correct tst for redict with gravatarproxy disabled 2025-01-31 16:07:58 +01:00
Oliver Falk
6cd5b64553 Fix a few tests to work properly again 2025-01-31 14:40:01 +01:00
Oliver Falk
154e965fe3 Ensure we can add Bluesky handles and display it on the profile page 2025-01-31 12:51:51 +01:00
Oliver Falk
072783bfd5 Handle development environment differently to ensure we hit the local instance 2025-01-31 12:50:34 +01:00
Oliver Falk
259d370d9a Need to handle URL request 2025-01-31 12:49:32 +01:00
Oliver Falk
e1705cef36 Add BlueskyProxy + handle requests 2025-01-31 12:49:06 +01:00
Oliver Falk
94b0fc2068 New field bluesky_handle in both main models 2025-01-31 12:44:11 +01:00
Oliver Falk
ffab741445 Bluesky creds could be undefined, handle that exception accordingly
Signed-off-by: Oliver Falk <oliver@linux-kernel.at>
2025-01-27 08:06:12 +01:00
Oliver Falk
7559ddad6e Refactor: Centralize URL handling and add Bluesky integration
- Centralize urlopen functionality in utils.py with improved error handling
- Add configurable URL timeout across the project
- Introduce Bluesky client for fetching avatar from there (TBC)
- Support SSL verification bypass in debug mode

Signed-off-by: Oliver Falk <oliver@linux-kernel.at>
2025-01-25 13:16:04 +01:00
Oliver Falk
dc30267ff4 Don't use Argon2, as it doesn't work in old Python envs 2025-01-23 13:45:27 +01:00
Oliver Falk
3fad7497a1 Add argon2 to reqs; Fixes pipeline build as well
Signed-off-by: Oliver Falk <oliver@linux-kernel.at>
2025-01-23 13:33:49 +01:00
Oliver Falk
4a615c933b Newer Django may create this dir for djcache 2025-01-21 19:55:59 +01:00
Oliver Falk
6c25f6ea12 Pin Django to > 5.1, as older version may not work properly any more 2025-01-21 19:44:04 +01:00
Oliver Falk
cea4d5eb24 settings: Update for Django 5.1 compatibility
* Add LocaleMiddleware and i18n template context processor
* Add ATOMIC_REQUESTS for database transactions
* Adjust password validation settings:
  - Keep min length at 6 chars
* Add security settings for production environment
2025-01-21 19:42:32 +01:00
Oliver Falk
e878224ba6 Ensure we change the navbar to red-ish in case of the development instance 2025-01-08 13:52:00 +01:00
Oliver Falk
483dcf8cf7 Remove debugging statements 2024-06-25 10:36:07 +02:00
Oliver Falk
07c7f42f01 Merge branch 'master' into devel 2024-06-25 10:35:05 +02:00
Oliver Falk
b0d09e3ad4 Merge branch 'master' into devel 2024-06-25 10:34:09 +02:00