<commit_before>﻿using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.DataProtection;
using Microsoft.AspNetCore.Http;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Wodsoft.ComBoost.Security
{
    public class ComBoostAuthenticationOptions : AuthenticationOptions
    {
        public ComBoostAuthenticationOptions()
        {
            AuthenticationScheme = "ComBoost";
            AutomaticAuthenticate = true;
            //TicketDataFormat = new TicketDataFormat()
            CookieDomain = c => null;
            CookiePath = c => null;
            CookieName = c => "ComBoostAuthentication";
            ExpireTime = c => TimeSpan.FromMinutes(15);
            //LoginPath = c => "/Account/Login";
            //AutomaticChallenge = true;
        }
        public IDataProtectionProvider DataProtectionProvider { get; set; }
<commit_msg>修复Cookie错误<commit_after>﻿using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.DataProtection;
using Microsoft.AspNetCore.Http;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Wodsoft.ComBoost.Security
{
    public class ComBoostAuthenticationOptions : AuthenticationOptions
    {
        public ComBoostAuthenticationOptions()
        {
            AuthenticationScheme = "ComBoost";
            AutomaticAuthenticate = true;
            //TicketDataFormat = new TicketDataFormat()
            CookieDomain = c => null;
            CookiePath = c => "/";
            CookieName = c => "ComBoostAuthentication";
            ExpireTime = c => TimeSpan.FromMinutes(15);
            //LoginPath = c => "/Account/Login";
            //AutomaticChallenge = true;
        }
        public IDataProtectionProvider DataProtectionProvider { get; set; }

{'fraction_non_alphanumeric': 0.08924843423799582, 'fraction_numerical': 0.0020876826722338203, 'mean_word_length': 2.8649193548387095, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2499190', 'n_tokens_mistral': 491, 'n_tokens_neox': 502, 'n_words': 105}