Attività di "ChetanKumbhar"

Hi,

I want to hard delete record from AbpUsersTable, Currently we are doing soft delete from AbpUsers Table. I went through some documents for hard delete, i found HardDeleteAsync method for hard delete. i found this method for my other DB repository, but not for Identity Module repository. I want hard delete user from AbpUsers Table. i could not found HardDeleteAsync this method for IdentityUserManager or any repository of identity model.

So how should i hard delete records from AbpUsers Table?

ABP Framework version: v3.0.4 UI type: Angular DB provider: EF Core Tiered (MVC) or Identity Server Separated (Angular): yes / no Exception message and stack trace: Steps to reproduce the issue:

Hi,

I am trying to access tenant id in unit test case project. Following configurations i have done in to my project.

set tenant id in App setting json of project "TenantId": "**********************************"

after this i have done some configuration in TestBaseModul.cs

Configure<AbpMultiTenancyOptions>(options =>
{
    options.IsEnabled = true;
});

public override void OnApplicationInitialization(ApplicationInitializationContext context)
{
    SeedTestData(context);

    var app = context.GetApplicationBuilder();
    app.UseMultiTenancy();
}

Now i am getting Object referance not set to instance .....exception. I have two question,

  1. Is this correct way to access tenant id in unit test cases if yes, then how should i fixed that exception.
  2. If not then, how should i access tenant id in Unit test cases.

ABP Framework version: v3.0.4 UI type: Angular DB provider: EF Core Tiered (MVC) or Identity Server Separated (Angular): yes / no Exception message and stack trace: Steps to reproduce the issue:

Hi,

I have added following services, in my one of service. IPermissionGrantRepository _permissionGrantRepository IPermissionChecker _permissionChecker IPermissionStore _permissionStore

There is no issue while working with api. But now i am testing this in unit test projects. I am getting following error. ***********.InvoiceApplicationTests.GetListAsync Duration: 1 ms

Message: Autofac.Core.DependencyResolutionException : An exception was thrown while activating .InvoiceAppService. ---- Autofac.Core.DependencyResolutionException : None of the constructors found with 'Autofac.Core.Activators.Reflection.DefaultConstructorFinder' on type '.InvoiceAppService' can be invoked with the available services and parameters: Cannot resolve parameter 'Volo.Abp.PermissionManagement.IPermissionGrantRepository permissionGrantRepository' of constructor 'Void .ctor(.IInvoiceRepository, Volo.Abp.Linq.IAsyncQueryableExecuter, Microsoft.Extensions.Localization.IStringLocalizer1[***********.InvoiceManagementResource], Microsoft.Extensions.Logging.ILogger1[.InvoiceAppService], Volo.Abp.Uow.IUnitOfWorkManager, Volo.Abp.PermissionManagement.IPermissionGrantRepository, Volo.Abp.Authorization.Permissions.IPermissionChecker, Volo.Abp.Authorization.Permissions.IPermissionStore)'. Stack Trace: InstanceLookup.CreateInstance(IEnumerable1 parameters) InstanceLookup.Execute() ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, ResolveRequest request) ResolveOperation.ResolveComponent(ResolveRequest request) ResolveOperation.Execute(ResolveRequest request) LifetimeScope.ResolveComponent(ResolveRequest request) ResolutionExtensions.TryResolveService(IComponentContext context, Service service, IEnumerable1 parameters, Object& instance) ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable1 parameters) ResolutionExtensions.Resolve(IComponentContext context, Type serviceType, IEnumerable1 parameters) ResolutionExtensions.Resolve(IComponentContext context, Type serviceType) AutofacServiceProvider.GetRequiredService(Type serviceType) ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType) ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider) AbpTestBaseWithServiceProvider.GetRequiredServiceT InvoiceApplicationTests.ctor() line 24 ----- Inner Stack Trace ----- ReflectionActivator.GetValidConstructorBindings(ConstructorInfo[] availableConstructors, IComponentContext context, IEnumerable1 parameters) ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable1 parameters) InstanceLookup.CreateInstance(IEnumerable`1 parameters)

I have added following referances 

using Volo.Abp.PermissionManagement.EntityFrameworkCore; using Volo.Abp.Modularity; using Volo.Abp; using Volo.Abp.Uow; using Microsoft.Extensions.DependencyInjection;

in **\test*.EntityFrameworkCore.Tests\EntityFrameworkCore project. still i am getting same error.

what configuration i am missing.

  • ABP Framework version: v3.0.4
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes / no
  • Exception message and stack trace:
  • Steps to reproduce the issue:

We have added following referance in one of microservice architecture to create user

Identity.HttpApi Identity.EntityFrameworkCore Identity.Application

you check details about that issue in https://support.abp.io/QA/Questions/1069/Not-able-to-create-user-in-MicroService-Architecture

but after that all unit test cases are failed for that service. We were facing issue of Volo.Abp.AbpInitializationException : An error occurred during the initialize Volo.Abp.Modularity.OnApplicationInitializationModuleLifecycleContributor phase of the module Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcModule, Volo.Abp.AspNetCore.Mvc, Version=3.0.4.0, Culture=neutral, PublicKeyToken=null: Could not find singleton service: Microsoft.AspNetCore.Hosting.IWebHostEnvironment, Microsoft.AspNetCore.Hosting.Abstractions, Version=3.1.12.0, Culture=neutral, PublicKeyToken=adb9793829ddae60. See the inner exception for details. ---- System.InvalidOperationException : Could not find singleton service: Microsoft.AspNetCore.Hosting.IWebHostEnvironment, Microsoft.AspNetCore.Hosting.Abstractions, Version=3.1.12.0, Culture=neutral, PublicKeyToken=adb9793829ddae60

Then in following URL there are steps to resolve that issue

https://support.abp.io/QA/Questions/1077/Testing-Overridden-AppService#answer-1bbd38f2-5f8c-36ad-6eeb-39fb70a23930

I followed that steps:

Created WebEnvironmentHostMock.cs class implemented IWebHostEnvironment Interface.

step -1. public class WebHostEnvironmentMock : IWebHostEnvironment { public IFileProvider WebRootFileProvider { get; set; } public string WebRootPath { get; set; } public string EnvironmentName { get; set; } public string ApplicationName { get; set; } public string ContentRootPath { get; set; } public IFileProvider ContentRootFileProvider { get; set; }

    public WebHostEnvironmentMock()
    {
        var absoluteRootPath = "**********Path of Identity Server Microservice*****************" Drive:\\Folder\\Folder\\Folder\\Folder\\Folder\\***.***.IdentityServer;
        ContentRootPath = absoluteRootPath;
        WebRootPath = absoluteRootPath;
    }
}

step -2 : { [DependsOn( typeof(**********ApplicationModule), typeof(********DomainTestModule), typeof(AbpIdentityHttpApiModule), typeof(AbpIdentityEntityFrameworkCoreModule), typeof(AbpIdentityApplicationModule) )] public class **********TestModule : AbpModule { public override void ConfigureServices(ServiceConfigurationContext context) { context.Services.AddSingleton<IWebHostEnvironment>(new WebHostEnvironmentMock()); } } }

After This above issue get resolved, but there is following issue we are facing now.

'An error occurred during the initialize Volo.Abp.Modularity.OnApplicationInitializationModuleLifecycleContributor phase of the module SCV.Litmus.ProfileManagement.ProfileManagementTestBaseModule, SCV.Litmus.ProfileManagement.TestBase, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null: SQLite Error 1: 'no such table: AbpUsers'.. See the inner exception for details.'

I checked douments, but couldn't find any solutions. Kindly help me out on this.

  • ABP Framework version: v3.0.4
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no / Yes
  • Exception message and stack trace: N.A
  • Steps to reproduce the issue: N.A

Hi,

I want to implement reCaptcha in our project. We have created log in page on in angular UI. I have gone through some documents, razor pages used for implementation of recaptcha. so my question is that.

  1. how should i Implement it on angular side.
  2. my angular version is v3.0. should i need to update my angular version.

what needs to be done for implemetaion of reCaptcha.

  • ABP Framework version: v3.0.4
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:

I have created one demo application to implement 2 factor authentication using mvc. I done all the configuration for one user, email verified, two factor authentication enabled. when i enter user name & password it thows mi an exception NotImplementedException: The method or operation is not implemented. Volo.Abp.Account.Web.Pages.Account.LoginModel.TwoFactorLoginResultAsync()

I gone through all the document, i could not get sample source code to implement TwoFactorLoginResultAsync(), or any other solution which will resolve my issue. I also not found 1. /Account/SendSecurityCode 2. /Account/VerifySecurityCode

Kindly provide me sample source code to implement 2 factor authentication in MVC.

Than

  • ABP Framework version: v4.0.1
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Seperated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:

Hi,

We want to implement 2FA in our application and we are using angular/api in our project. We configured all the setting email verified, two factor authentication enabled. now when we log in we expect 2nd level of authentication but nothing is change. I have checked all the document i did't get any solution or source code.

  1. Let me know is there any version issue, if yes which version should i use?
  2. Where should get 2FA pages to integrate in angular & its api.

Kindly provide me sample code of implementation of 2 FA using angular/API.

  • ABP Framework version: v3.0.4
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Seperated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:

Hi,

I am implementing 2 Factor authentication i have done all the configuration, email verified, phone verified. two factor authentication enabled. but still there is no change. when i log in, it redirecting to dashboard page. it didn't show 2nd window of two factor. do we need add those two pages externally from account module?.

kindly let me know what thing remaining for implementing 2 factor authentication successfully.

  • ABP Framework version: v3.0.4
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Seperated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:

We have some questions regarding 2FA. We created project using angular.

  1. Our need to implement 2FA with only email id...Can we implement 2FA with only email id.?
  2. Our log in page is customized , how we can get that pages of 2FA in our project.
  3. What technical changes we required?
  4. Which version on abp is required for this?

Is there chat option for quick response?

Thanks Chetan Kumbhar.

Hii,

For two factor authentication, we can implement only by using email id. Is it neccessry to have verified phone number as well.

Thanks & Regards, Chetan Kumbhar.

11 - 20 di 21
Made with ❤️ on ABP v8.2.0-preview Updated on marzo 25, 2024, 15:11