Last post Dec 03, 2017 10:30 AM by Dmitry Sikorsky
Dec 02, 2017 08:24 PM|Nowbakht|LINK
Hi, I wanna create a website which contains some subdomain.
each subdomain is complete website which has it's own database.
what is the best way to manage users and roles in my main website(main database)?
I also use Repository Pattern.
Dec 03, 2017 10:30 AM|Dmitry Sikorsky|LINK
If you can't have the same website on all of the websites, the best way is to use the same approach as Google, Microsoft and others do. Consider using OAuth protocol. Your main web application could be identity provider, other apps can trust it. So when
your user wants to login on some of your websites, it will be redirected to the main website's login page, and then back (with the login information).
It is not so difficult to implement.