I have two web applications. One is developed in MVC 5 and the second is developed in ASP.NET Core 3. Both websites hosted on different domains.
- mycmswebsite.com
- myshopwebsite.com
My user authentication module is on the shop website and I also store some values in session from the shop website that I need to access in the cms website.
I am planning to use a Distributed cache with SQL Server or Redis and also planning to use single sign-on using Oauth2.
What is the best practice to check if the user is authenticated on the shop website from the cms website and also access the data which are stored in the shop website?
I don't have much knowledge in Distributed cache techniques that can be shared across multiple applications.