rober_allsopp_eqtr
09/26/2023, 10:11 AMhuwred
09/26/2023, 10:15 AMhuwred
09/26/2023, 10:16 AMcsharp
services.ConfigureApplicationCookie(options =>
{
    var protectionProvider = DataProtectionProvider.Create(new DirectoryInfo(@"c:\shared-auth-ticket-keys\"));
    options.Cookie.Name = ".AuthCookie";
    options.Cookie.Expiration = TimeSpan.FromDays(7);
    options.LoginPath = "/Account/Login";
    options.Cookie.Domain = ".example.com";
    options.DataProtectionProvider = protectionProvider;
    options.TicketDataFormat = new TicketDataFormat(protectionProvider.CreateProtector("Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationMiddleware", "Cookies", "v2"));
});huwred
09/26/2023, 10:17 AMrober_allsopp_eqtr
09/26/2023, 10:34 AMcrl
09/26/2023, 4:10 PMcrl
09/26/2023, 4:10 PMhuwred
09/26/2023, 4:16 PMhuwred
09/26/2023, 5:26 PMcrl
09/26/2023, 8:38 PMcrl
09/26/2023, 8:45 PMA hub and casual space for you to interact with fellow community members and learn more about Umbraco!
Powered by