Activities of "andmattia"

Hi @gterdem

to reproduce this issue I write the steps:

  • create an empty solution on ANZ (.NetCore + Angular Vs 7.1.0)
  • create an empty solution on ABP pro (v 5.1.4) + UI Angular
  • enable OpenId on ANZ (in prev post you can see our configuration)
  • enable option on IS in ABP.IO solution
  • start Angualr+API (ANZ)+IS(ABP.IO)
  • Try to login from Angular (ANZ)

Our situation is this:

  • Login redirect to IS
  • Do login process correctly
  • No rederiction on ANZ site

Let me know if you need more information

Hi @albert

I tried with Https but situation still the same.

So I'm not agree with your answer "is related to a 3rd party component".

My question is releted how ANZ and ABP.IO can comunicate. I think is a big point to allow project migration from ANZ to ABP for many customer and is not cover in any guide or document at the moment.

I sended a full empty solution based on ANZ and ABP (without our customization) at @info to give you all information and data to try this issue.

Any way I write to info to get a quotation for this issue

Hi

could you please give us support on this issue?

Any update?

Hi all

I spent my last 3 days to try to identify why this not work.

I start from scracth again with 2 clean solution ANZ 7.1 and ABP.IO 5.1.4 and I'm able to send my login to ABP.IO page but the flow not works. This is the configuration In ANZ we put this configuration

    "OpenId": {
      "IsEnabled": "true",
      "ClientId": "anz_client",
      "Authority": "https://localhost:44379/",
      "LoginUrl": "https://localhost:44379/Account/Login",
      "ValidateIssuer": "false",
      "ClaimsMapping": [
        {
          "claim": "unique_name",
          "key": "preferred_username"
        }
      ]
    },

Go to login for default tenant we are redirect to https://localhost:44379/Account/Login?response_type=id_token&client_id=anz_client&state=dhMpK2WQPQWaY2fovyS9jhWyk3DXQceDYJ7Ff1WB%3BopenIdConnect%3D1&redirect_uri=http%3A%2F%2Flocalhost%3A4300%2Faccount%2Flogin&scope=openid%20profile&nonce=dhMpK2WQPQWaY2fovyS9jhWyk3DXQceDYJ7Ff1WB And no return happen

I check the link generate from ABP.IO angular https://localhost:44379/Account/Login?ReturnUrl=%2Fconnect%2Fauthorize%2Fcallback%3Fresponse_type%3Dcode%26client_id%3DTest_App%26state%3DUHFYMlJ2TEx2ckt-V3BfdFN0LUNWVHRpZ2tmWVZiTTdvVnFVNEp6LkE4NXln%26redirect_uri%3Dhttp%253A%252F%252Flocalhost%253A4200%26scope%3Dopenid%2520offline_access%2520Test%26code_challenge%3DaXtCQgVDgqr52DYoXZgL2-cktwkxIrmcCLTHf2Dtin0%26code_challenge_method%3DS256%26nonce%3DUHFYMlJ2TEx2ckt-V3BfdFN0LUNWVHRpZ2tmWVZiTTdvVnFVNEp6LkE4NXln%26culture%3Den%26ui-culture%3Den

I see some differnce

  • ReturnUrl is missed on ANZ
  • response_type code vs id_token

I hope is enough to investigate why doesn't work

Answer

I found the problem.

My base class inherit from DomainService and it's ITransientDependency

Question
  • ABP Framework version: lastest
  • DB provider: MongoDB

Hi

we are working on a module/service that are connecto to MQTT server.

We have create a client and define it as ISingletonDependency because only one exists on our application, we set the configuration via IOptions and until here this it works fine.

At the end of domain module we add a simple to init all configuration

public override async Task OnPreApplicationInitializationAsync(ApplicationInitializationContext context)
    {
        var myService = context.ServiceProvider.GetService<BrokerClient>();
        await myService.InitializeAsync();
    }

the first execution on Receive message handler is ok and it write data on DB but the second message has all services disposed IService

    // On Init Async method
    _mqttClient.UseApplicationMessageReceivedHandler(ReceiveMessageHandler);
    


    [UnitOfWork]
    private async Task ReceiveMessageHandler(MqttApplicationMessageReceivedEventArgs arg)
    {
       ...
       //using (var scope = _serviceProvider.CreateScope())
       //{
            _logger.LogDebug(jsonString);
       //}
    }

If I run this code log works has expected but If I look into this and _serviceProvider is disposed

How can we recover the consistent state of UOW?

Hi

I try to use Identity Server to authenticate my user from ANZ.

On ANZ site I add openId configuration

    "OpenId": {
      "IsEnabled": "true",
      "ClientId": "anz-client",
      "Authority": "https://localhost:44308",
      "LoginUrl": "https://localhost:44308/Account/Login",
      "ValidateIssuer": "false",
      "ClaimsMapping": [
        {
          "claim": "unique_name",
          "key": "preferred_username"
        }
      ]
    },

Now after choose tenant on ANZ I see the OpenId Connection button. If I click it app redirect my to IS but not with tenant (first issue) after login process IS no redirect back to ANZ site.

My goal is:

  • copy user and tenant on ABP.IO
  • Enable IS on ABP.IO and use it to auth user from ANZ

Hi

I read the document that you has share/attach but not answer to my question about integration for 2 dbcontext which is the best practice to do that.

Has you any suggestion?

  • ABP Framework version: v5.1.3
  • 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:"

We need to understand the correct flow to separate main app and module. I try to explain our scenario:

  • Single app in ANZ moving to separate modules.

I have an app a small ERP system whit 2 module CRM and Invoicing. At the moment code is in a single solution with differnente (core/app/EF) single (angular project). So now we are working to rebuild in different module/services.

Our questions are:

  1. CRM and Invoicing are module or app? If i look to ABP.io site support and community are 2 different url so I think that are 2 application. Is it correct? Is better consider CRM an app or a module?
  2. Related to EF Migration. The ef migration are into the EF cs project, but I have look a lot of example and it's not clear where is correct to store migration on EF and when it doesn't. I have try to create a new app template and I found DBMigrator project but if I create a module this project not exists, in this second case where I put my add-migration? I need to create always an app (that has the Migratior project) add module and call my module dbcontext on migration project?
  3. Actually one of the module has 2 dbcontext 1 MSSQL EF and 1 NoSQL mongodb, in that case the correct target we thnik could be 2 microservice 1 with EF and 1 with Mongo that can be orchastrated via RabbitMq(async) or ApiClient (sync). Is it correct?
  4. have you some use guide/best practice to move angular based on metronic to angular based on lepton theme? Lepton theme has restriction use in conjuction with DevExpress or Telerik?
Showing 101 to 110 of 115 entries
Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11