'Blazor not providing individual sessions. How to fix?

I have a Blazor Server app hosted on an Azure App Service, which communicates to an on-premises server connected through a VNET on Azure.

I have custom authentication in place where a user will use their login credentials which is validated in the on-premises server which returns a token.


Now my issue is that it seems like there aren't individual instances of the app. I've come to this conclusion because of the following scenario I've encountered:

I have a ZXing barcode scanner which displays a decoded barcode in the following manner:

<input type='text' value='@Barcode' disabled="disabled" />

The value is displayed in the textbox once a barcode is found.

Here is my issue:

  1. Open the app using live URL on my mobile phone and on my PC
  2. I scan the code on my phone
  3. The PC's textbox is updated with the code I just scanned on my phone?

Is there a specific configuration I'm missing or am I misunderstanding how Blazor works?



Solution 1:[1]

The cause was the BlazorBarcodeScanner.ZXing.JS, Blazor barcode scanner .

I manually implemented the JS library and my problem disappeared.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 E_net4 - Krabbe mit Hüten