Activities of "ninomartini"

I converted the project from v3.0.5 to v3.1.2 and kept the resource owner password authentication.

Hello @mehmet

I was able to get the Angular domain tenant resolver to work in v3.1.2. Is there a way to hide the tenant selection from the login page without recreating the login page?

Created a new project with ABP Suite (Angular, MongoDB, v3.1.2). The CRUD Page Generator will not generate the Angular code if two or more enum properties defined. I tried uninstalling the ABP Suite and reinstalling. Also trried clearing my NuGet cache without success. This was working in v3.0.5.

Any other suggestions?

Hello @mehmet

Thank you for your response. I will wait and test this feature when v3.1 is released.

Abp v3.04/MongoDb/Angular

I am trying to implement this without success. In the HttpApi.Host project I modify ConfigServices to include the domain resolver.

public override void ConfigureServices(ServiceConfigurationContext context)
{
    var configuration = context.Services.GetConfiguration();
    var hostingEnvironment = context.Services.GetHostingEnvironment();

    Configure<AbpTenantResolveOptions>(options =>
    {
        options.TenantResolvers.Insert(1, new DomainTenantResolveContributor("{0}.localhost"));
    });

    ConfigureUrls(configuration);
    ConfigureConventionalControllers();
    ConfigureAuthentication(context, configuration);
    ConfigureSwagger(context);
    ConfigureLocalization();
    ConfigureVirtualFileSystem(context);
    ConfigureCors(context, configuration);
}

In my Angular project I update the enviroment.ts file to inlciude a baseUrl.

export const environment = {
  production: false,
  application: {
    baseUrl: 'https://{0}.localhost/',
    name: 'Mmg',
  },
  oAuthConfig: {
    issuer: 'https://localhost:44383',
    clientId: 'Mmg_App',
    dummyClientSecret: '1q2w3e*',
    scope: 'Mmg',
    showDebugInformation: true,
    oidc: false,
    requireHttps: true,
  },
  apis: {
    default: {
      url: 'https://localhost:44383'
    },
  },
  localization: {
    defaultResourceName: 'Mmg',
  }
};

http://localhost:4200/ will launch the application successfully. http://demo.localhost:4200/ returns status code 304 with a response of Invalid Host Header. Can you help shed some light on what I missed?

Answer

Solved by creating a factory function.

  providers: [
    { provide: 'list', useClass: ListService },
    { provide: 'unitMessageList', useClass: ListService },
    ...]
    
  constructor(
    @Inject('list') public readonly list: ListService,
    @Inject('unitMessageList') public readonly unitMessageList: ListService,
    ...
    }

Understood, thank you.

I am using a shared database solution. Why did DataFilter not work?

Thank you for your quick response. According to one of your earlier responses, I thought that _dataFilter.Disable<IMultiTenant>() would achive my goal.

[ How to inject a repository to supply all the tenantfull and tenantless records of a database table? #115](https://support.abp.io/QA/Questions/115/How-to-inject-a-repository-to-supply-all-the-tenantfull-and-tenantless-records-of-a-database-table)

When and how is _dataFilter.Disable<IMultiTenant>() applied?

@sean.alford,

Thank you for the suggestion. Unfortunately, it did not work for me. I get the error below:

error NU1101: Unable to find package volo.abp.suite. No packages exist with this id in source(s): ABP Nightly, C:\Program Files\dotnet\sdk\NuGetFallbackFolder, Microsoft Visual Studio Offline Packages, nuget.org
The tool package could not be restored.
Tool 'volo.abp.suite' failed to install. This failure may have been caused by:

* You are attempting to install a preview release and did not use the --version option to specify the version.
* A package by this name was found, but it was not a .NET Core tool.
* The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem.
* You mistyped the name of the tool.

For more reasons, including package naming enforcement, visit https://aka.ms/failure-installing-tool
Showing 11 to 20 of 29 entries
Made with ❤️ on ABP v9.0.0-preview Updated on September 19, 2024, 10:13