I have a web app developed using the following technology stack:
- Frontend using Angular and hosted using Azure App Service
- REST APIs using ASP.NET CORE 3.1 and and hosted using Azure App Service
- Azure SQL for database
AzureAD authentication is leveraged in this implementation on top of authorization check against the database (Azure SQL).This app can be used by the users using different browsers : Chrome, Firefox and Microsoft Edge. There is a scenario where the same user can login into the application at the same time using different browsers. In this case I want to logout the user and allow him/her to be active via one connection only. In short I am trying to allow only one login from the end user at the same time and block the remaining connections from the same user using other devices or browsers. Based on my analysis, SignalR can be a potential solution for this use case.
Can anyone help me to get some sample reference code in context to the above example?