Bunch of OIDC fixes and one extra (#4126)

This commit is contained in:
Fesaa
2025-10-21 22:07:04 +02:00
committed by GitHub
parent 947ab758ca
commit bda2a4d50d
20 changed files with 140 additions and 93 deletions
+7
View File
@@ -7,6 +7,13 @@ using Microsoft.Extensions.Caching.Memory;
namespace API.Services.Store;
/// <summary>
/// The <see cref="ITicketStore"/> is used as <see cref="CookieAuthenticationOptions.SessionStore"/> for the OIDC implementation
/// The full AuthenticationTicket cannot be included in the Cookie as popular reverse proxies (like nginx) will deny the request
/// due the large header size. Instead, the key is used.
/// </summary>
/// <param name="cache"></param>
/// <remarks>Note that this store is in memory, so OIDC authenticated users are logged out after restart</remarks>
public class CustomTicketStore(IMemoryCache cache): ITicketStore
{