Activities of "liangshiwei"

If you want to use the password flow, you can modify the code when navigating to the react login page

Ok, shared

Hi,

Not yet.

: )

Hi,

Yes, I'm using the MacBook (M1 Pro - RAM 16GB)

I suspect that can be related to health checks (can I disable them in debug mode?)

You can try:

#if !DEBUG
             ConfigureHealthChecks(context);
#endif

Hi,

  1. Update route config:
{
      "DownstreamPathTemplate": "/signalr-hubs/{everything}",
      "DownstreamScheme": "wss",
      "DownstreamHostAndPorts": [
        {
          "Host": "localhost",
          "Port": 44361
        }
      ],
      "UpstreamPathTemplate": "/signalr-hubs/{everything}"
    },
    {
      "DownstreamPathTemplate": "/ws",
      "UpstreamPathTemplate": "/",
      "DownstreamScheme": "wss",
      "DownstreamHostAndPorts": [
        {
          "Host": "localhost",
          "Port": 44361
        }
      ]
    }
  1. Add app.UseWebSockets(); to TransitWebGatewayModule
app.UseWebSockets();
app.UseOcelot().Wait();
  1. Update ServiciodemoService
private createConnection() {
if (!this.connection) {
  this.connection = new HubConnectionBuilder()
    .withUrl('https://localhost:44325/signalr-hubs/demo',
      {
        accessTokenFactory: () => this.userService.getAccessToken(),
        transport: HttpTransportType.WebSockets
      })

    // .withUrl('/Notifications',
    //     {
    //         accessTokenFactory: () => userId,
    //         // THis will use websockets by default, if it does not work try uncommenting this line
    //         // transport: HttpTransportType.ServerSentEvents
    //     })
    .withAutomaticReconnect()
    // .configureLogging(LogLevel.Debug)
    .build();

    this.connection.start();
}
}

should be await IdentityLinkUserAppService.GenerateLinkLoginTokenAsync();

not

await IdentityLinkUserAppService.GenerateLinkTokenAsync()

You can try:


<form method="post" action="Account/LinkLogin" id="LinkLoginForm" hidden>
    <input type="hidden" name="SourceLinkUserId" value="@CurrentUser.Id">
    <input type="hidden" name="SourceLinkTenantId" value="@CurrentTenant.Id">
    <input type="hidden" id="SourceLinkToken" name="SourceLinkToken">
    <input type="hidden" id="TargetLinkUserId" name="TargetLinkUserId">
    <input type="hidden" id="TargetLinkTenantId" name="TargetLinkTenantId">
    <input type="hidden" name="ReturnUrl">
</form>


.......................

public async Task SwitchToAccount(LinkedAccount linkedAccount)
{
    // Generating SourceLinkToken
    var sourceLinkToken = await IdentityLinkUserAppService.GenerateLinkLoginTokenAsync();

    // HERE TENANTID AND TARGETENANTID ARE NULL
    
    await JsRuntime.InvokeVoidAsync("eval", "document.getElementById('SourceLinkToken').value = '" + sourceLinkToken + "'");
    await JsRuntime.InvokeVoidAsync("eval", "document.getElementById('TargetLinkUserId').value = '" + linkedAccount.TargetUserId + "'");
    await JsRuntime.InvokeVoidAsync("eval", "document.getElementById('TargetLinkTenantId').value = '" + linkedAccount.TargetTenantId + "'");
    await JsRuntime.InvokeVoidAsync("eval", "document.getElementById('LinkLoginForm').submit()");
}

Could you share a simple project via email that can reproduce the problem with me? I will check it. shiwei.liang@volosoft.com

Showing 2261 to 2270 of 6693 entries
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.1.0-preview. Updated on November 04, 2025, 06:41