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,
{
"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
}
]
}
app.UseWebSockets(); to TransitWebGatewayModuleapp.UseWebSockets();
app.UseOcelot().Wait();
ServiciodemoServiceprivate 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