Activities of "berly"

Thank you very much — it works perfectly now! I had mistakenly referenced the Application.Contracts project instead of the HttpApi.Client one.

Here is the configuration I currently have:

It uses the admin user account (which I don’t think is the best approach).

"IdentityClients": {
  "Marylease": {
    "GrantType": "password",
    "ClientId": "APP2_App",
    "UserName": "admin",
    "UserPassword": "1q2w3E*",
    "Authority": "https://localhost:44335",
    "Scope": "APP2"
  }
}

So my question is: what would be the best practice in this case?

Here's how APP1 currently accesses APP2's remote service, and we'd like to maintain this simplicity:

// In APP1 (Client - Blazor Server)
public class MyLocalApp1Service : App1ServiceBase, IMyLocalApp1Service
{
    private readonly IApp2RemoteService _app2RemoteServiceProxy; // Interface from APP2.Application.Contracts

    public MyLocalApp1Service(IApp2RemoteService app2RemoteServiceProxy) // Proxy injection
    {
        _app2RemoteServiceProxy = app2RemoteServiceProxy;
    }

    public async Task<ResultDto> CallApp2ServiceAsync()
    {
        // We want authentication to be handled automatically here
        var resultFromApp2 = await _app2RemoteServiceProxy.SomeMethodOnApp2Async();
        // ... process result ...
        return resultFromApp2;
    }
}

Our main question is:

How can we configure APP1 (the client) to authenticate automatically (obtain and use a token via Client Credentials) when using dynamic HTTP client proxies (like IApp2RemoteService in the example), without APP1's application code (like MyLocalApp1Service) having to explicitly manage the authentication process? Is there a specific configuration or "handler" in ABP's HTTP client pipeline that enables this transparently for the caller?

We've reviewed the documentation and previous discussions regarding ClientPermissionValueProvider for the authorization part on APP2, which is clear. However, we're specifically looking for guidance on the APP1 client-side configuration to ensure that injecting and calling the remote service interface handles authentication "under the hood."

We are not planning to use Integration Services at this time, as some APIs will be shared and need to remain standard, visible, and authenticated REST APIs.

Could you please point us to the recommended configuration or an example illustrating this transparent handling of Client Credentials authentication for dynamic HTTP client proxies?

We are willing to share our current functional repository, which includes a docker-compose.yml setup for launching the environment (two ABP Blazor Server projects with APP1 referencing APP2's Application.Contracts layer), if that would help. A small Proof of Concept (POC) demonstrating a remote call similar to what we've achieved, but with very basic authentication added, would be incredibly helpful.

Thankscontinuity for your assistance.

Best regards,

Vivien

Hi, I didn't have Yarn installed, once the installation was done I recovered all the libs.

I just created the project with abp new Acme.BookStore -u blazor-server and I still don't have a bootsrap folder in the libs folder.

I just sent it to you, did you receive it?

I tried but I didn't get any new libs

Here is the file : { "version": "1.0.0", "name": "my-app", "private": true, "dependencies": { "@volo/language-management": "~9.0.0", "@volo/file-management": "~9.0.0", "@volo/chat": "~9.0.0", "@volo/account": "~9.0.0", "@volo/abp.aspnetcore.mvc.ui.theme.leptonx": "~4.0.0", "@volo/aspnetcore.components.server.leptonxtheme": "~4.0.0" } }

I didn't do anything specific, I created the project via the abp studio CLI.

Hi @maliming

I’ve been working on a project built with MAUI-Blazor, but I’m encountering some critical issues:

On Android, the application crashes instantly at launch. On Windows (non-UWP), I’m getting the following error:

Unhandled exception. System.Runtime.InteropServices.COMException (0x80040154): Classe non enregistr�e (0x80040154 (REGDB_E_CLASSNOTREG))
   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode)
   at WinRT.ActivationFactory.Get(String typeName)
   at Microsoft.Windows.ApplicationModel.WindowsAppRuntime.DeploymentInitializeOptions.get__objRef_global__Microsoft_Windows_ApplicationModel_WindowsAppRuntime_DeploymentInitializeOptions()
   at Microsoft.Windows.ApplicationModel.WindowsAppRuntime.DeploymentInitializeOptions..ctor()
   at Microsoft.Windows.ApplicationModel.WindowsAppRuntime.DeploymentManagerCS.AutoInitialize.get_Options() in C:\Users\vivie\.nuget\packages\microsoft.windowsappsdk\1.6.240923002\include\DeploymentManagerAutoInitializer.cs:line 44
   at Microsoft.Windows.ApplicationModel.WindowsAppRuntime.DeploymentManagerCS.AutoInitialize.AccessWindowsAppSDK() in C:\Users\vivie\.nuget\packages\microsoft.windowsappsdk\1.6.240923002\include\DeploymentManagerAutoInitializer.cs:line 30
   at .cctor()

To troubleshoot, I tested a fresh MAUI-Blazor project, which worked perfectly. Based on this, I suspect the issue is related to ABP.

Additionally, when building the project using the CLI, I encounter an error during the bundling process. I also noticed that MAUI-Blazor is not available in the ABP Studio GUI.

Could you please assist in identifying the root cause or provide any guidance on resolving this?

Thanks in advance for your help!

We can't use WeTransfer sorry.

I send you an email with the link to download.

Showing 1 to 10 of 52 entries
Learn More, Pay Less
33% OFF
All Trainings!
Get Your Deal
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.0.0-preview. Updated on September 12, 2025, 10:20