hi @rachanee-mwp
You can create a custom ConfigurationSettingValueProvider
then read settings via underscore name
.
public override void ConfigureServices(ServiceConfigurationContext context)
{
Configure<AbpSettingOptions>(options =>
{
options.ValueProviders.InsertAfter(typeof(ConfigurationSettingValueProvider), typeof(MyConfigurationSettingValueProvider));
});
}
public class MyConfigurationSettingValueProvider : ISettingValueProvider, ITransientDependency
{
public const string ConfigurationNamePrefix = "Settings:";
public const string ProviderName = "MC";
public string Name => ProviderName;
protected IConfiguration Configuration { get; }
public MyConfigurationSettingValueProvider(IConfiguration configuration)
{
Configuration = configuration;
}
public virtual Task<string> GetOrNullAsync(SettingDefinition setting)
{
return Task.FromResult(Configuration[ConfigurationNamePrefix + setting.Name.Replace(".", "_")]);
}
public Task<List<SettingValue>> GetAllAsync(SettingDefinition[] settings)
{
return Task.FromResult(settings.Select(x => new SettingValue(x.Name, Configuration[ConfigurationNamePrefix + x.Name.Replace(".", "_")])).ToList());
}
}
hi
I create a mvc
project using 4.0.0-rc.3
, When I register with my email, it will automatically log in when I log in again.
! 4.0.0 has not yet released the official version, RC is for testing only.
dotnet tool uninstall --global Volo.Abp.Cli && dotnet tool install --global Volo.Abp.Cli --version 4.0.0-rc.3
abp new MyApp -t app-pro -u mvc --mobile none --database-provider ef --csf --preview
hi
I received the mail, I will check, thank you
hi @michael.sudnik
Can you share the ClientId
and ClientSecret
with me? so that I can test it locally.
liming.ma@volosoft.com
hi jason.smith
Can you create a new quesion?
hi
Can you share your external login code and provide a test Microsoft account? liming.ma@volosoft.com
hi @Leaf
Maybe you should access the property of data.record
.
visible : function(data){
//data.record.status
return data.record.xxx == 'New';
}
The problem has nothing to do with the code but with the mac os.
hi @jung
Please send an email to me, I am going to use the ZOOM meeting to check this remotely.
liming.ma@volosoft.com
hi
You can include option below to your IdentityServer or JwtBearer configuration for local usage;
options.JwtBackChannelHandler = new HttpClientHandler
{
ServerCertificateCustomValidationCallback = HttpClientHandler.DangerousAcceptAnyServerCertificateValidator
}
or
options.BackchannelHttpHandler = new HttpClientHandler
{
ServerCertificateCustomValidationCallback = HttpClientHandler.DangerousAcceptAnyServerCertificateValidator
}