Base solution for your next web application

Activities of "vladsd"

Just getting up and running on ASP.NET zero.

I would like my instance to use IdentityServer4 and MongoDB.

The features pages of asp.net zero lists IdentityServer4 integration, please point how to configure the use on MongoDB.

Thanks.

Thanks. One feature might be nice it to add ability to configure IS4 clients via tenant configuration, as it would change from one to another.

Same time IS4 supports mongodb, so one can just configure support? Right?

We are looking for the experience developers to take asp.net zero template and apply it our project needs. This would be ongoing project with ongoing features and enhancements. If you are interested please let us know at this link <a class="postlink" href="https://goo.gl/forms/T9Jk164OidI1itcN2">https://goo.gl/forms/T9Jk164OidI1itcN2</a>

Problem: If you enable two factor, it will use cache to store codes it generates. Issue: If you have multiserver environment, it would not find the code on the other servers. Not a good solution: One can configure Redis for caching, but there is no way to specify for cache just to use redis for that cache! Better solution: Cache in database, it would be nice if mongodb database was supported for caching.

Any other ideas?

The issue is here with MailKit, here is Connect that fixes the issue client.Connect( _smtpEmailSenderConfiguration.Host, _smtpEmailSenderConfiguration.Port, //_smtpEmailSenderConfiguration.EnableSsl SecureSocketOptions.Auto );

I believe there is more, as backend needs to save into tenant storage. For example:

await SettingManager.ChangeSettingForTenantAsync(AbpSession.GetTenantId(),AppSettings.TenantManagement.BillingLegalName, input.LegalName);

vs

await SettingManager.ChangeSettingForApplicationAsync(EmailSettingNames.DefaultFromAddress, input.DefaultFromAddress);

sounds like a great feature to have

I already did. There are a lot of good features in your framework that can be uncovered with a few lines of code.

VS 2017 has built in support for npm and webpack and angular cli. It would be nice if you can provide steps how to update AngurlarUI project so it can be compiled, run and debugged right from Visual Studio.

Anyone have tried to that? I understand I can keep doing cli. It would nice to use VS debugger.

Thanks.

I have implemented custom resolver, catch all situation, resolves to default tenant id. See

//https://aspnetboilerplate.com/Pages/Documents/Multi-Tenancy
    public class DefaultTenantResolveContributor : ITenantResolveContributor, ITransientDependency
    {
        private readonly IHttpContextAccessor _httpContextAccessor;
        private static int DEFAULT_TENANT = 3;

        public DefaultTenantResolveContributor(IHttpContextAccessor httpContextAccessor)
        {
            _httpContextAccessor = httpContextAccessor;
        }

        public int? ResolveTenantId()
        {
            return DEFAULT_TENANT;
        }
    }

It is added in PreInitialize in Core module

Configuration.MultiTenancy.Resolvers.Add<DefaultTenantResolveContributor>();

When application runs, it fails to load it. With exception:

Castle.MicroKernel.ComponentNotFoundException HResult=0x80131500 Message=No component for supporting the service DefaultTenantResolveContributor was found Source=Castle.Windsor StackTrace: at Castle.MicroKernel.DefaultKernel.Castle.MicroKernel.IKernelInternal.Resolve(Type service, IDictionary arguments, IReleasePolicy policy) at Abp.Dependency.IocResolverExtensions.ResolveAsDisposable[T](IIocResolver iocResolver, Type type) at Abp.MultiTenancy.TenantResolver.GetTenantIdFromContributors() at Abp.MultiTenancy.TenantResolver.ResolveTenantId() at Abp.Runtime.Session.ClaimsAbpSession.get_TenantId() at Abp.Domain.Uow.UnitOfWorkBase.SetFilters(List1 filterOverrides) at Abp.Domain.Uow.UnitOfWorkBase.Begin(UnitOfWorkOptions options) at Abp.Domain.Uow.UnitOfWorkManager.Begin(UnitOfWorkOptions options) at MyProject.Migrations.Seed.SeedHelper.WithDbContext[TDbContext](IIocResolver iocResolver, Action1 contextAction) in C:\Dev\MyProject\Base\aspnet-core\src\MyProject.EntityFrameworkCore\Migrations\Seed\SeedHelper.cs:line 38 at MyProject.Migrations.Seed.SeedHelper.SeedHostDb(IIocResolver iocResolver) in C:\Dev\MyProject\Base\aspnet-core\src\MyProject.EntityFrameworkCore\Migrations\Seed\SeedHelper.cs:line 18 at MyProject.EntityFrameworkCore.MyProjectEntityFrameworkCoreModule.PostInitialize() in C:\Dev\MyProject\Base\aspnet-core\src\MyProject.EntityFrameworkCore\EntityFrameworkCore\MyProjectEntityFrameworkCoreModule.cs:line 51 at System.Collections.Generic.List1.ForEach(Action1 action) at Abp.AbpBootstrapper.Initialize()

Please help what I am missing as I followed the doc at <a class="postlink" href="https://aspnetboilerplate.com/Pages/Documents/Multi-Tenancy">https://aspnetboilerplate.com/Pages/Doc ... ti-Tenancy</a>

Thank you.

It is created in my new project I call MyProject.Extensions

I tried adding this code in core module but it did not help: Configuration.IocManager.IocContainer.Register( Component.For<ITenantResolveContributor>() .ImplementedBy<DefaultTenantResolveContributor>() .LifestyleTransient()); }

Showing 1 to 10 of 166 entries