I have a tiered MVC application for which I have overridden the ConfirmUser page in the Identity Server project of my solution. I would like to call an API action defined by my xxxx.HttpApi.Host project from the Identity Server project. How can I do this?
See github repo sample that shows what I'm trying to do. In particular take a look at the \Pages\Account\ConfigmUser.js file to see that I am trying to refer to the 'TestService' that is defined in the AbpSample.Application project.
https://github.com/spospisil/abpSample.git
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.
If you're creating a bug/problem report, please include followings:
I would like my tenant's admin by default (when creating a tenant via the Saas module) to not have access to certain modules. I see that if I add a row to the FeatureValues table as shown below I can prevent the module from showing up in the Tenant's Role/User 'permission' modal, however there doesn't seem to be one for 'Payment' or 'Account' and for that matter within the 'Identity Management' group I see various permissions within the module that I do not want displayed at all on the Permissions modal.
Is there an update to this thread?
https://github.com/abpframework/abp/issues/2611
I am not able to call an ABP service directly from Javascript. It appears as if my ABP Service is not being included in the ServiceProxyScript that gets loaded. Steps to reproduce issue.
$('#CallFunctionButton').click(function (e) { structureWeb.companyTenant().then(function (result) { console.log(result.items); }); });
Is it possible to call one of my Application Services (that returns a List collection from values from the DB) within a class that inherits from the PermissionDefinitionProvider to dynamically create PermissionDefinition objects? I create an instance of my application service using the **var permissionService = context.ServiceProvider.GetRequiredService(); **statement but after the service calls the supporting repository lookup I get an "Instances cannot be resolved and nested lifetimes cannot be created from this LifetimeScope as it (or one of its parent scopes) has already been disposed."
This same application service/method is used elsewhere in my application without any issues, so it appears to not work when I use it within a class that inherits from the PermissionDefinitionProvider class.
This exception was originally thrown at this call stack: Autofac.Core.Lifetime.LifetimeScope.CheckNotDisposed() Autofac.Core.Lifetime.LifetimeScope.BeginLifetimeScope(object) Autofac.Core.Lifetime.LifetimeScope.BeginLifetimeScope() Autofac.Extensions.DependencyInjection.AutofacServiceScopeFactory.CreateScope() Volo.Abp.Uow.UnitOfWorkInterceptor.InterceptAsync(Volo.Abp.DynamicProxy.IAbpMethodInvocation) in UnitOfWorkInterceptor.cs System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task) System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task) System.Runtime.CompilerServices.ConfiguredTaskAwaitable.ConfiguredTaskAwaiter.GetResult() Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter.InterceptAsync(Castle.DynamicProxy.IInvocation, Castle.DynamicProxy.IInvocationProceedInfo, System.Func<Castle.DynamicProxy.IInvocation, Castle.DynamicProxy.IInvocationProceedInfo, System.Threading.Tasks.Task>) ... [Call Stack Truncated]
I have a use case where a user is assigned to one or more roles. These roles may have an overlap in terms of permissions but from a user permission perspective the list of available permissions will be a union of all the roles' permissions they are assigned to. However, I would like to make an exception at a user level (not a role level) to a particular user that removes one of the permissions that are assigned to them via the roles they are assigned to WITHOUT creating a separate role that has this exception that gets assigned to the user.
Role 1 Permission A Permission B
Role 2 Permission B Permission C
The above role/permission break down results in a user having Permission A, B, and C. However I want to exclude a user from having permission B despite being assigned to one or more roles that give that user permission.
Can this be done with ABP/Identity Server?
If you're creating a bug/problem report, please include followings:
I get the following error when I try to impersonate a tenant when running locally in visual studio. I've researched and cannot find how to fix the issue.
I was having calling any methods for the Setting, Permission and Feature App service *.HttpApi.Client in a tiered solution because the individual *generate-proxy.json files were not marked as an 'embedded resource' and/or the following lines were not included in the *.HttpApi.Client project file.
<ItemGroup>
<EmbeddedResource Include="**\*generate-proxy.json" />
<Content Remove="**\*generate-proxy.json" />
</ItemGroup>
Looking at the various pro and non pro ABP modules I don't see any consistency as to how these generated proxy files are marked as embedded. Would it be possible to for this aspect of the framework to be corrected so it's consistent for when a new version of ABP is released so manual fixes are not necessary.
Thank you.
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.
If you're creating a bug/problem report, please include followings:
I get following error when I try to launch the 'settings' menu option under the admin menu. Additionally I get similar issues on the PermissionAppService.GetAsync and FeatureAppService.GetAsync calls at well.
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.
If you're creating a bug/problem report, please include followings:
I am getting an error in the browser when trying to call the API via the Dynamic Javascript Client Proxy. Below are screenshots for my service contract interface, implementation of that interface and the javascript file that refers to the api service and the error in the browser that I am getting when trying to use this api proxy.
Can you see from this what the issue might be? The last time this happened it seemed to be related to a naming convention of my namespace I was using but I have tried it using many ones at this point and I'm still getting the error.
Thanks