Activities of "Femi.madariola"

I have added the depends on for the entity framework project and it loads well and also shows the current roles, the user has.

However, I can't seem to get the policies or permissions the user has been granted on the microservice. Meaning when I check the granted policies on the ​/api​/abp​/application-configuration endpoint from the main application, I see the policies that have been granted but when I check from that ​/api​/abp​/application-configuration endpoint on the Microservice the array is empty.

How do I show the policies that have been granted to the user on the Microservice?

Thanks for your response.

I have added the AbpIdentityModules to both the Application and Domain layer (added this so I can use IdentityUser in the EFCore layer).

I have also changed my appsettings to look like below:

"AbpPermissionManagement": "Server=tcp:agromall.database.windows.net,1433;Initial Catalog=NewVCPDB;Persist Security Info=False;User ID=xxxxxxx;Password=xxxxxxxxx;MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;", "AbpIdentity": "Server=tcp:agromall.database.windows.net,1433;Initial Catalog=NewVCPDB;Persist Security Info=False;User ID=xxxxxxxxx;Password=xxxxxxxxx;MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;", "AM": "Server=tcp:agromall.database.windows.net,1433;Initial Catalog=AccountManagement;Persist Security Info=False;User ID=xxxxxxxxx;Password=xxxxxxxxx;MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;"

However I get this error below:

Autofac.Core.DependencyResolutionException HResult=0x80131500 Message=An exception was thrown while activating Volo.Abp.Identity.IdentityDataSeedContributor -> Volo.Abp.Identity.IdentityDataSeeder. Source=Autofac StackTrace: at Autofac.Core.Resolving.InstanceLookup.CreateInstance(IEnumerable1 parameters) at Autofac.Core.Resolving.InstanceLookup.Execute() at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, ResolveRequest request) at Autofac.Core.Resolving.ResolveOperation.ResolveComponent(ResolveRequest request) at Autofac.Core.Resolving.ResolveOperation.Execute(ResolveRequest request) at Autofac.Core.Lifetime.LifetimeScope.ResolveComponent(ResolveRequest request) at Autofac.ResolutionExtensions.TryResolveService(IComponentContext context, Service service, IEnumerable1 parameters, Object& instance) at Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable1 parameters) at Autofac.ResolutionExtensions.Resolve(IComponentContext context, Type serviceType, IEnumerable1 parameters) at Autofac.ResolutionExtensions.Resolve(IComponentContext context, Type serviceType) at Autofac.Extensions.DependencyInjection.AutofacServiceProvider.GetRequiredService(Type serviceType) at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType) at Volo.Abp.Data.DataSeeder.<SeedAsync>d__7.MoveNext() at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Castle.DynamicProxy.AsyncInterceptorBase.<ProceedAsynchronous>d__13.MoveNext() at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapter.<ProceedAsync>d__7.MoveNext() at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Volo.Abp.Uow.UnitOfWorkInterceptor.<InterceptAsync>d__3.MoveNext() at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter1.<InterceptAsync>d__2.MoveNext() at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.GetResult() at AM.AMHttpApiHostModule.<>c__DisplayClass5_0.<<SeedData>b__0>d.MoveNext() in C:\Users\FemiM\Documents\Agro\AM\host\AM.HttpApi.Host\AMHttpApiHostModule.cs:line 238 at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.GetResult() at Nito.AsyncEx.Synchronous.TaskExtensions.WaitAndUnwrapException(Task task) at Nito.AsyncEx.AsyncContext.<>c__DisplayClass15_0.<Run>b__0(Task t) at System.Threading.Tasks.ContinuationTaskFromTask.InnerInvoke() at System.Threading.Tasks.Task.<>c.<.cctor>b__277_0(Object obj) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.GetResult() at Nito.AsyncEx.Synchronous.TaskExtensions.WaitAndUnwrapException(Task task) at Nito.AsyncEx.AsyncContext.Run(Func1 action) at Volo.Abp.Threading.AsyncHelper.RunSync(Func1 action) at AM.AMHttpApiHostModule.SeedData(ApplicationInitializationContext context) in C:\Users\FemiM\Documents\Agro\AM\host\AM.HttpApi.Host\AMHttpApiHostModule.cs:line 234 at AM.AMHttpApiHostModule.OnApplicationInitialization(ApplicationInitializationContext context) in C:\Users\FemiM\Documents\Agro\AM\host\AM.HttpApi.Host\AMHttpApiHostModule.cs:line 229 at Volo.Abp.Modularity.OnApplicationInitializationModuleLifecycleContributor.Initialize(ApplicationInitializationContext context, IAbpModule module) at Volo.Abp.Modularity.ModuleManager.InitializeModules(ApplicationInitializationContext context)

This exception was originally thrown at this call stack: [External Code]

Inner Exception 1: DependencyResolutionException: None of the constructors found with 'Autofac.Core.Activators.Reflection.DefaultConstructorFinder' on type 'Volo.Abp.Identity.IdentityDataSeeder' can be invoked with the available services and parameters: Cannot resolve parameter 'Volo.Abp.Identity.IIdentityRoleRepository roleRepository' of constructor 'Void .ctor(Volo.Abp.Guids.IGuidGenerator, Volo.Abp.Identity.IIdentityRoleRepository, Volo.Abp.Identity.IIdentityUserRepository, Microsoft.AspNetCore.Identity.ILookupNormalizer, Volo.Abp.Identity.IdentityUserManager, Volo.Abp.Identity.IdentityRoleManager, Volo.Abp.MultiTenancy.ICurrentTenant, Microsoft.Extensions.Options.IOptions1[Microsoft.AspNetCore.Identity.IdentityOptions])'.

Hello Team

I have a solution that consists of:

  • one main application template (Main) and
  • one module application (Account) exposed via an Http.Api.host
  • and an identity server seperatated used by both other applications.

What is the best way to get the list of users from the module application (Account) because I have a grid that I need to show the list of users that performed certain activities. I got the user's ID when the action was performed from the "CurrentUser.Id" property.

Also how do I check or get the roles of the user from the Module application (Account) to confirm if the authenticated user has a certain role from the Identity server. When I check the user's role, it is currently blank.

  • ABP Framework version: 4.2
  • 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:

Hellooooooooooo

Hello shiwei.liang@volosoft.com

Sorry I missed this, what other time can we do this?

Logs are below: but this call does not show up on the logs, it feels like the call did not get to the server at all.

2020-12-30 08:17:42.184 +00:00 [INF] Request starting HTTP/1.1 GET https://agromallidentityserver.azurewebsites.net/Abp/ServiceProxyScript 2020-12-30 08:17:42.262 +00:00 [INF] Executing endpoint 'Volo.Abp.AspNetCore.Mvc.ProxyScripting.AbpServiceProxyScriptController.GetAll (Volo.Abp.AspNetCore.Mvc)' 2020-12-30 08:17:42.263 +00:00 [INF] Route matched with {area = "Abp", action = "GetAll", controller = "AbpServiceProxyScript", page = ""}. Executing controller action with signature Microsoft.AspNetCore.Mvc.ActionResult GetAll(Volo.Abp.AspNetCore.Mvc.ProxyScripting.ServiceProxyGenerationModel) on controller Volo.Abp.AspNetCore.Mvc.ProxyScripting.AbpServiceProxyScriptController (Volo.Abp.AspNetCore.Mvc). 2020-12-30 08:17:42.263 +00:00 [INF] Executing action method Volo.Abp.AspNetCore.Mvc.ProxyScripting.AbpServiceProxyScriptController.GetAll (Volo.Abp.AspNetCore.Mvc) - Validation state: "Valid" 2020-12-30 08:17:42.280 +00:00 [INF] Executed action method Volo.Abp.AspNetCore.Mvc.ProxyScripting.AbpServiceProxyScriptController.GetAll (Volo.Abp.AspNetCore.Mvc), returned result Microsoft.AspNetCore.Mvc.ContentResult in 16.3285ms. 2020-12-30 08:17:42.280 +00:00 [INF] Executing ContentResult with HTTP Response ContentType of application/javascript 2020-12-30 08:17:42.280 +00:00 [INF] Executed action Volo.Abp.AspNetCore.Mvc.ProxyScripting.AbpServiceProxyScriptController.GetAll (Volo.Abp.AspNetCore.Mvc) in 17.0714ms 2020-12-30 08:17:42.280 +00:00 [INF] Executed endpoint 'Volo.Abp.AspNetCore.Mvc.ProxyScripting.AbpServiceProxyScriptController.GetAll (Volo.Abp.AspNetCore.Mvc)' 2020-12-30 08:17:42.280 +00:00 [INF] Request finished in 95.8192ms 200 application/javascript 2020-12-30 08:17:46.129 +00:00 [INF] Executed action method Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.AbpApplicationConfigurationScriptController.Get (Volo.Abp.AspNetCore.Mvc), returned result Microsoft.AspNetCore.Mvc.ContentResult in 3972.924ms. 2020-12-30 08:17:46.129 +00:00 [INF] Executing ContentResult with HTTP Response ContentType of application/javascript 2020-12-30 08:17:46.254 +00:00 [INF] Executed action Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.AbpApplicationConfigurationScriptController.Get (Volo.Abp.AspNetCore.Mvc) in 4100.1609ms 2020-12-30 08:17:46.254 +00:00 [INF] Executed endpoint 'Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.AbpApplicationConfigurationScriptController.Get (Volo.Abp.AspNetCore.Mvc)' 2020-12-30 08:17:46.255 +00:00 [INF] Request finished in 4182.9981ms 200 application/javascript 2020-12-30 08:19:45.743 +00:00 [INF] Request starting HTTP/1.1 POST https://agromallidentityserver.azurewebsites.net/connect/token application/x-www-form-urlencoded 120 2020-12-30 08:19:46.539 +00:00 [INF] Invoking IdentityServer endpoint: IdentityServer4.Endpoints.TokenEndpoint for /connect/token 2020-12-30 08:19:46.923 +00:00 [INF] {"ClientId":"MP_App","AuthenticationMethod":"SharedSecret","Category":"Authentication","Name":"Client Authentication Success","EventType":"Success","Id":1010,"Message":null,"ActivityId":"80000007-0000-ea00-b63f-84710c7967bb","TimeStamp":"2020-12-30T08:19:46.0000000Z","ProcessId":7016,"LocalIpAddress":"10.21.0.22:443","RemoteIpAddress":"129.205.124.183","$type":"ClientAuthenticationSuccessEvent"} 2020-12-30 08:19:47.510 +00:00 [WRN] Ldap login feature is not enabled! 2020-12-30 08:19:47.625 +00:00 [INF] Credentials validated for username: admin 2020-12-30 08:19:47.626 +00:00 [INF] {"Username":"admin","Provider":null,"ProviderUserId":null,"SubjectId":"583ddaf7-98e0-cb46-f7d2-39f9545c8f80","DisplayName":"admin","Endpoint":"Token","ClientId":null,"Category":"Authentication","Name":"User Login Success","EventType":"Success","Id":1000,"Message":null,"ActivityId":"80000007-0000-ea00-b63f-84710c7967bb","TimeStamp":"2020-12-30T08:19:47.0000000Z","ProcessId":7016,"LocalIpAddress":"10.21.0.22:443","RemoteIpAddress":"129.205.124.183","$type":"UserLoginSuccessEvent"} 2020-12-30 08:19:47.771 +00:00 [INF] {"Username":"admin","Provider":null,"ProviderUserId":null,"SubjectId":"583ddaf7-98e0-cb46-f7d2-39f9545c8f80","DisplayName":null,"Endpoint":"Token","ClientId":"MP_App","Category":"Authentication","Name":"User Login Success","EventType":"Success","Id":1000,"Message":null,"ActivityId":"80000007-0000-ea00-b63f-84710c7967bb","TimeStamp":"2020-12-30T08:19:47.0000000Z","ProcessId":7016,"LocalIpAddress":"10.21.0.22:443","RemoteIpAddress":"129.205.124.183","$type":"UserLoginSuccessEvent"} 2020-12-30 08:19:47.780 +00:00 [INF] Token request validation success, {"ClientId":"MP_App","ClientName":"MP_App","GrantType":"password","Scopes":"MP offline_access","AuthorizationCode":null,"RefreshToken":null,"UserName":"admin","AuthenticationContextReferenceClasses":null,"Tenant":null,"IdP":null,"Raw":{"client_id":"MP_App","client_secret":"<i>REDACTED</i>","username":"admin","password":"<i>REDACTED</i>","grant_type":"password","scope":"offline_access MP"},"$type":"TokenRequestValidationLog"} 2020-12-30 08:19:48.182 +00:00 [INF] {"ClientId":"MP_App","ClientName":"MP_App","RedirectUri":null,"Endpoint":"Token","SubjectId":"583ddaf7-98e0-cb46-f7d2-39f9545c8f80","Scopes":"MP offline_access","GrantType":"password","Tokens":[{"TokenType":"refresh_token","TokenValue":"****G5ak","$type":"Token"},{"TokenType":"access_token","TokenValue":"****xJyA","$type":"Token"}],"Category":"Token","Name":"Token Issued Success","EventType":"Success","Id":2000,"Message":null,"ActivityId":"80000007-0000-ea00-b63f-84710c7967bb","TimeStamp":"2020-12-30T08:19:48.0000000Z","ProcessId":7016,"LocalIpAddress":"10.21.0.22:443","RemoteIpAddress":"129.205.124.183","$type":"TokenIssuedSuccessEvent"} 2020-12-30 08:19:48.205 +00:00 [INF] Request finished in 2462.4289ms 200 application/json; charset=UTF-8 2020-12-30 08:20:05.208 +00:00 [INF] Request starting HTTP/1.1 POST https://agromallidentityserver.azurewebsites.net/connect/token application/x-www-form-urlencoded 121

Hello,

I have installed Redis already and put in the connection string in the appsettings.json file.

The log in page loads in a decent time but when you input your credentials and click on login it takes a very long time before it logs in.

Also, when I make a direct call via Post man to fetch a token, it is very slow.

Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples, to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, please use the search on the homepage.

  • ABP Framework version: v3.3.1
  • 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:

I have deployed the Identity Server to Azure Appservice.

When we try to get a token from the service using (/connect/token), it is quite erratic (i.e. it works some times and atimes it doesn't work (times out no error message)). When it works, it also behaves in an erratic fashion (i.e. can be very fast and also very slow atimes).

Is there something I can do to make it faster.

Thanks for your response.

For the AppName: When I put in any value (i.e. I used "Mp_App"), I got the error below:

Volo.Abp.AbpException: Url, named 'Abp.Account.EmailConfirmation', for the application 'MP_App' was not configured. Use AppUrlOptions to configure it! at Volo.Abp.UI.Navigation.Urls.AppUrlProvider.GetConfiguredUrl(String appName, String urlName) at Volo.Abp.UI.Navigation.Urls.AppUrlProvider.GetUrlAsync(String appName, String urlName)

What do I do?

When an account is registered, I want the user's first name and last name to be amongst the information that is collected.

When registering a new account, only the email address, username, password and appname are collected. The implication is that new users that register don't have a first name and last name at the point of registration.

Hence, I want to extend the api/account/register to accept a First name and Last name. { "userName": "string", "emailAddress": "user@example.com", "password": "string", "appName": "string", "returnUrl": "string", "returnUrlHash": "string", "captchaResponse": "string" }

How do I go about this and also what is the "appName" property?

Showing 1 to 10 of 11 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on December 13, 2024, 06:09