Commit graph

21 commits

Author SHA1 Message Date
f3bb039d2f WIP audiences 2026-07-12 02:42:13 +01:00
58c08fe2fc auto refresh token 2026-07-09 23:34:15 +01:00
2c6d11577c Yavsc.Org: set KeyId on signing credentials
IdentityServer8 was emitting JWTs without a 'kid' header and
serving the JWKS without per-key identifiers, because
LoadSigningCredentialsInner constructed RsaSecurityKey /
ECDsaSecurityKey objects without an explicit KeyId. Resource
servers (Yavsc.Blogs, Yavsc.Api) cannot match a token to a key
in the JWKS without one, so every signature validation failed
with 'The signature key was not found' (Microsoft.IdentityModel
IDX10500).

Root cause: SigningCredentials were built directly from the
BC-parsed key parameters, bypassing the X509Certificate2 path
IdentityServer normally derives the kid from. The fix derives
a stable KeyId from the certificate's SHA-256 thumbprint
(truncated to 16 hex chars) and sets it on both SecurityKey
variants before constructing SigningCredentials.

The thumbprint-based kid is stable across process restarts as
long as the cert doesn't change, and changes naturally on
LetsEncrypt renewal (~90 days), which is the right behaviour:
old tokens age out, resource servers refresh their JWKS cache
to discover the new kid.

Production rollout: redeploy Yavsc.Org and re-login (or let
the refresh-token path rotate) so newly issued tokens carry
the kid. Pre-restart tokens will continue to be rejected with
IDX10500 until they expire or are refreshed.
2026-07-09 00:32:20 +01:00
2eadd6e1b7 better 2026-07-08 23:16:04 +01:00
b7873ebd7c GET posts [dev] 200 2026-07-08 22:46:46 +01:00
86c268eebd deploying the blogs 2026-06-19 23:09:43 +01:00
4398715004 reinstall fixes and reorg 2026-06-19 21:13:17 +01:00
9fc719aa4d more crucial config from the service setup 2026-06-19 19:50:04 +01:00
148f333b36 do not override appsettings-*.*.json 2026-06-19 16:18:39 +01:00
92461d5f7b make reinstall failed 2026-06-19 02:15:27 +01:00
26d36dee71 synchro w\ main 2026-06-14 18:26:40 +01:00
root
198d5bc202 cd contrib; make reinstall 2026-06-13 20:57:30 +01:00
070f41ac7e refactoring for integration 2026-06-06 21:10:48 +01:00
Paul Schneider
40e8e08690 reorg 2026-02-28 21:17:54 +00:00
Paul Schneider
d000f77098 cleanup 2026-02-28 14:22:33 +00:00
Paul Schneider
39788f46f9 migration net9.0 2025-06-16 02:30:32 +01:00
Paul Schneider
962288ccb5 comleting the migration to net 7.0 2023-04-10 00:58:21 +01:00
d8f6371be0 MEF 2020-02-17 00:09:33 +00:00
e289c1bbd9 yavscd in prod 2019-12-11 16:42:07 +00:00
470cbb0490 running native 2019-11-14 14:01:03 +00:00
6f5e2aec1d [Refactoring] 2019-01-02 04:11:56 +00:00