Base solution for your next web application

Activities of "acmeware"

I need to make a few tables using the rad tool that store just a list of permissions and then some data about that permission. I want to lookup to the permissions list but I cannot figure out how make the entity viewable in the rad tool foreign key. Do you have a suggestion?

What is your product version? 10.3 What is your product type (Angular or MVC)? MVC What is product framework type (.net framework or .net core)? Core

I am trying to adjust the logout process so that OpenID can use single signout. I have it mostly working by redirecting to the OpenID logout url, but I am lacking the ability to identify the current user login source (LDAP, OpenID, ANZ) in order to skip the OpenID logout url for LDAP, etc.

Please help with the following questions:

How can tell if the currently signed in user did so via OpenID vs a password or LDAP?

Why are users allowed to have passwords if they registered using OpenID or other social logins? If by design, what is the recommended way to prevent setting a password and circumventing the openID login entirely?

  • What is your product version? 10.3
  • What is your product type (Angular or MVC)? MVC
  • What is product framework type (.net framework or .net core)? Core

I am trying to change an image (think logo) depending on what feature the current page belongs to. When looking at the feature manager, I only see methods to see if a feature is enabled at all, but what I really what to know is if the feature is decorated for the current controller/action. Is there a session variable or otherwise that shows if the current navigation has a particular feature?

10.3 MVC .NetCore

After noticing that you use nswag for the angular side of things I ran successfull it to create a C# API using the tools while targeting the swagger.json url. However, because of the rate at which our application changes, I was hoping to generate the file and the client at every build, but I cannot work through errors with targeting the csproj file or the assembly. Any example of this is in the documentation below.

I was wondering if you had any success in performing this during build time rather than run time and if you have any advice.

https://github.com/RicoSuter/NSwag/wiki/NSwag.MSBuild

<PropertyGroup>
  <RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
</PropertyGroup>

<Target Name="NSwag" AfterTargets="PostBuildEvent" Condition=" '$(Configuration)' == 'Debug' ">
  <Message Importance="High" Text="$(NSwagExe_Net50) run nswag.json /variables:Configuration=$(Configuration)" />

  <Exec WorkingDirectory="$(ProjectDir)" EnvironmentVariables="ASPNETCORE_ENVIRONMENT=Development" Command="$(NSwagExe_Net50) run nswag.json /variables:Configuration=$(Configuration)" />

  <Delete Files="$(ProjectDir)\obj\$(MSBuildProjectFile).NSwag.targets" /> <!-- This thingy trigger project rebuild -->
</Target>
  • Product Version is 10.3
  • Product Type is MVC JQuery
  • .NET Core 5.0
  • RAD Tool Version is 2.7.8
  • Using Metronics 7, Default theme

This is in regards to the Power Tools Master Detail Tables tutorial. https://docs.aspnetzero.com/en/common/latest/Development-Guide-Rad-Tool-Master-Detail

I'm trying to follow along, but it is not generating the proper UI for Child Rows uner the Base Entities.

But when it comes to the UI, there is no child rows under the Base entity. In addition, not Edit Child buttons are generated.

The service applications classes and EntityFramewok classes all look like they are generating correctly.

When I look at the code in the MVC project, it is creating MasterDetailChild_ReportParent_ChildReportsController View and Model. But it doesn't appear the BaseEntities View is integrating the MasterDetailChild View.

Hi, Can you publish Metronic 7 source so we can alter themes?

Question

Hi, I need to create a method to override certain permissions regardless of what is in the table.

In my UserManager.cs I added this hard-code to test out where to do this. It is not working, the user still has permission to this page. Where should I override permissions in this way if not here?

public override async Task<bool> IsGrantedAsync(long userId, Permission permission)
{
    if (permission.Name == "Pages.ConnectionLogs.Create")
    {
        return false;
    }
    return await base.IsGrantedAsync(userId, permission);                     
}

Hi, I have succesfully implemented the DefaultExternalAuthenticationSource to provide the bool for TryAuthenticateAsync. However I would like to change the tenant based on data that comes back from the external source. How do I override the Tenant in TryAuthenticateAsync (or where do you suggest) so that when the user is checked it sets the correct tenant before checking the database and updating or creating the user.

My plan is to hide the tenancy selection and override the tenant based on the return values from the external source. Where is the best place to override the tenant and what code do I use to override?

I tried a number of things in these question and in github to no avail.

Thanks.

How is the new RAD tool multiple dbcontext supposed to be used? I was thinking that it allowed the RAD tool to work against non-inherited dbcontext, but I have to inheret from AbpZeroDbContext in order for the context to be visible in the tool. This then creates all the ABP tables in the secondary database.

As a side question, is it even possible to have a second database keeping all the ABP tables in the default context without the use of a separate module? I have some sensitive data I'd like to store in a separate database but not have to duplicate the entire original database.

I'm authenticating users against an external endpoint which also has a tenancy setup. I want to register the user to a tenant with the same ID number as the other system. Is it possible to register a tenant with the a specific ID if it does not exist already? I don't see a way to push down to the repository a tenant id.

thanks

Showing 1 to 10 of 12 entries