Commit graph

28 commits

Author SHA1 Message Date
1ab6e59fe2
chore(release): bump version via gitversion for 1.0.8-rc1 2026-08-18 19:18:36 +01:00
15f018117f
chore(release): bump version via gitversion for 1.0.7-rc1 2026-08-18 17:20:59 +01:00
1751145be8 Exploiting GitVersion 2026-06-28 14:11:26 +01:00
4034c39905 Front matters 2026-06-27 13:30:28 +01:00
dcf2a93ad0 Split Site:Audience into Site:ExternalUrl + Site:CorsAllowedOrigins
The Site:Audience setting was conflating two distinct concepts: an OAuth
JWT audience (a single resource identifier) and a CORS allow-list (an
array of origins). Collapsing them caused several latent bugs:
- OAuth/JWT validation expected a single string while CORS WithOrigins
  accepts an array.
- Password-reset callback URLs and OAuth client RedirectUri/Origin were
  being built from what was meant to be an audience identifier, not a
  base URL.
- Yavsc.Org's main CORS policy was hardcoded to '*', with no way to
  restrict it without code changes.

Changes:
- SiteSettings.Audience (string) replaced with CorsAllowedOrigins
  (IList<string>).
- OAuth JWT Authority still reads Site:Authority; Audience now reads
  Site:ExternalUrl (Org only; Api/Blogs use ValidateAudience=false).
- MailSender and AccountController build reset-callback URLs from
  Site:ExternalUrl.
- ClientController uses Site:ExternalUrl for OAuth RedirectUri/Origin
  defaults on newly created clients.
- Yavsc.Api and Yavsc.Blogs now read CORS origins from
  Site:CorsAllowedOrigins instead of hardcoded URLs.

Add shared AddYavscCors / AddYavscJwtBearer extension methods in
Yavsc.Server/Helpers/ServiceExtensions.cs to enforce a single
configuration contract across all runtime services (Api, Blogs, Org).
Fails closed when CorsAllowedOrigins is empty; fails fast at startup
when Site:Authority is missing.

Remove obsolete ConfigurationHelpers.GetAudience (no remaining callers).

Local appsettings-*.json files (which carry deployment-specific values
and are gitignored) must be updated to add Site:CorsAllowedOrigins.
2026-06-19 13:15:21 +01:00
c1f4d19975 fices the UI 2026-06-15 02:55:22 +01:00
80144bf9fc refacts, and launching Blogs 2026-06-04 22:04:20 +01:00
1aafb7cc7d IModerationService 2026-05-30 18:20:17 +01:00
95dec3636a Use InMemory db driver at testing 2026-05-28 22:18:26 +01:00
3b4376a5f0 repo refs 2026-05-24 20:55:29 +01:00
e1ad899158 Modernization 2026-04-19 17:23:18 +01:00
Paul Schneider
cbd5822fa2 diable nullable 2026-03-01 17:25:25 +00:00
Paul Schneider
40e8e08690 reorg 2026-02-28 21:17:54 +00:00
Paul Schneider
45514010f2 REORG 2026-02-14 16:54:27 +00:00
Paul Schneider
8d68ee380a id server db resources 2026-02-09 01:03:33 +00:00
Paul Schneider
a68287d847 Dockerfile & actions 2026-02-02 00:39:24 +00:00
Paul Schneider
aa2ad71cc6 localisation 2025-08-31 18:27:53 +01:00
Paul Schneider
8fc1153e59 testing 2025-07-14 20:35:13 +01:00
Paul Schneider
253a2919f3 misc 2025-07-07 07:49:18 +01:00
Paul Schneider
39788f46f9 migration net9.0 2025-06-16 02:30:32 +01:00
Paul Schneider
98fddce075 Merge branch 'main' of github.com:pazof/yavsc 2025-06-11 14:29:39 +01:00
dependabot[bot]
7bd1c8aab4 Bump SixLabors.ImageSharp from 3.1.6 to 3.1.7 in /src/Yavsc
Bumps [SixLabors.ImageSharp](https://github.com/SixLabors/ImageSharp) from 3.1.6 to 3.1.7.
- [Release notes](https://github.com/SixLabors/ImageSharp/releases)
- [Commits](https://github.com/SixLabors/ImageSharp/compare/v3.1.6...v3.1.7)

---
updated-dependencies:
- dependency-name: SixLabors.ImageSharp
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-06 22:29:48 +00:00
Paul Schneider
380f2314dc Code cleanup 2025-03-04 18:05:21 +00:00
dependabot[bot]
ffeb866e94 Bump MimeKit from 4.3.0 to 4.7.1 in /src/Yavsc.Server
Bumps [MimeKit](https://github.com/jstedfast/MimeKit) from 4.3.0 to 4.7.1.
- [Changelog](https://github.com/jstedfast/MimeKit/blob/master/ReleaseNotes.md)
- [Commits](https://github.com/jstedfast/MimeKit/compare/4.3.0...4.7.1)

---
updated-dependencies:
- dependency-name: MimeKit
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-18 00:04:48 +00:00
Paul Schneider
25b261f4ee more services from Web API 2025-02-15 12:45:27 +00:00
Paul Schneider
8e8f4d3896 refactoring 2025-02-14 22:44:33 +00:00
Paul Schneider
7cc450a648 Sdk version bump to net8.0 2024-02-14 19:17:17 +00:00
Paul Schneider
8929cc9bfa got the server lib 2023-03-19 16:39:04 +00:00