0

I Have mvc application under this address www.sample1.com and it's useing sso to to authenticate user so far so good my question is how can I use that authenticated user for another mvc applicathion under separate domain www.sample2.com

it means second mvc application should follow first one if user is authenticated there it will be authenticated in second one

bidva
  • 1
  • 3

1 Answers1

0

You have to set up one of the sites (or a third) as the SSO authority. Then any other sites must redirect the user to that one for logging in/out. The primary authentication cookie will be set on that SSO domain, and then it will need to pass a token back to the originating site to "authorize" the user there. This is not trivial and takes a lot of work to implement properly. Checkout this article for a good primer.

Chris Pratt
  • 232,153
  • 36
  • 385
  • 444