-1

I've 2 web site A & B and their databases are different. When any user is logged in on website A and later on same user is going to open website B then user should automatically logged on website B.

Please suggest how I can implement this.

My both application has been developed using .net core with react

dilipkumar1007
  • 329
  • 4
  • 22
  • Depends how you want to do it, and how your current login works. If the apps are on the same domain, then you can reuse cookies tokens etc. You could implement an `OAuth` client / server. Pass a JWT via a jsonp request. Or literally anything else... – Jeremy Lakeman Jul 12 '21 at 04:39
  • For React I think JWT SSO is batter idea to achieve this . – Anant Dabhi Jul 12 '21 at 04:41

1 Answers1

0

Strongly depends on how/where your site is hosted. if its hosted via IIS as an intranet application you could use windows authentication. Another idea would include a Single Sign-On implementation. Read into this thread for further details: C# ASP.NET Single Sign-On Implementation

Little-God
  • 183
  • 1
  • 3
  • 16
  • Thanks for sharing such details. In my case no link to redirect user from site 'A' to site 'B'. User only can open site 'B' by directly typing URL in browser. Also, yes both site hosted on IIS – dilipkumar1007 Mar 31 '21 at 12:12