<commit_before>using Signum.Entities;
using Signum.Utilities;
using System;
using System.ComponentModel;
using System.Reflection;

namespace Signum.Entities.Authorization
{
    [Serializable]
    public class ActiveDirectoryConfigurationEmbedded : EmbeddedEntity
    {
        [StringLengthValidator(Max = 200)]
        public string? DomainName { get; set; }

        [StringLengthValidator(Max = 250)]
        public string? DomainServer { get; set; }

        public string? DirectoryRegistry_Username { get; set; }

        [Format(FormatAttribute.Password)]
        public string? DirectoryRegistry_Password { get; set; }

        [StringLengthValidator(Max = 100), Description("Azure Application (client) ID")]
        public string? Azure_ApplicationID { get; set; }

        [StringLengthValidator(Max = 100), Description("Azure Directory (tenant) ID")]
        public string? Azure_DirectoryID { get; set; }

        [StringLengthValidator(Max = 100), Description("Azure Client Secret ID")]
        public string? Azure_ClientSecret { get; set; }

        public bool LoginWithWindowsAuthenticator { get; set; }
        public bool LoginWithActiveDirectoryRegistry { get; set; }
        public bool LoginWithAzureAD { get; set; } = true;

        public bool AllowMatchUsersBySimpleUserName { get; set; } = true;

        public bool AutoCreateUsers { get; set; }
        public bool AutoUpdateUsers { get; set; }

        [PreserveOrder, NoRepeatValidator]
        public MList<RoleMappingEmbedded> RoleMapping { get; set; } = new MList<RoleMappingEmbedded>();

        public Lite<RoleEntity>? DefaultRole { get; set; }

        protected override string? PropertyValidation(PropertyInfo pi)
        {
            if(LoginWithWindowsAuthenticator || LoginWithActiveDirectoryRegistry)<commit_msg>Change standard LoginWithAzureAD  from true to false<commit_after>using Signum.Entities;
using Signum.Utilities;
using System;
using System.ComponentModel;
using System.Reflection;

namespace Signum.Entities.Authorization
{
    [Serializable]
    public class ActiveDirectoryConfigurationEmbedded : EmbeddedEntity
    {
        [StringLengthValidator(Max = 200)]
        public string? DomainName { get; set; }

        [StringLengthValidator(Max = 250)]
        public string? DomainServer { get; set; }

        public string? DirectoryRegistry_Username { get; set; }

        [Format(FormatAttribute.Password)]
        public string? DirectoryRegistry_Password { get; set; }

        [StringLengthValidator(Max = 100), Description("Azure Application (client) ID")]
        public string? Azure_ApplicationID { get; set; }

        [StringLengthValidator(Max = 100), Description("Azure Directory (tenant) ID")]
        public string? Azure_DirectoryID { get; set; }

        [StringLengthValidator(Max = 100), Description("Azure Client Secret ID")]
        public string? Azure_ClientSecret { get; set; }

        public bool LoginWithWindowsAuthenticator { get; set; }
        public bool LoginWithActiveDirectoryRegistry { get; set; }
        public bool LoginWithAzureAD { get; set; }

        public bool AllowMatchUsersBySimpleUserName { get; set; } = true;

        public bool AutoCreateUsers { get; set; }
        public bool AutoUpdateUsers { get; set; }

        [PreserveOrder, NoRepeatValidator]
        public MList<RoleMappingEmbedded> RoleMapping { get; set; } = new MList<RoleMappingEmbedded>();

        public Lite<RoleEntity>? DefaultRole { get; set; }

        protected override string? PropertyValidation(PropertyInfo pi)
        {
            if(LoginWithWindowsAuthenticator || LoginWithActiveDirectoryRegistry)
{'fraction_non_alphanumeric': 0.08783969256107603, 'fraction_numerical': 0.008234971177600879, 'mean_word_length': 3.454767726161369, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '4265749', 'n_tokens_mistral': 972, 'n_tokens_neox': 914, 'n_words': 260}