Brendan Green
Brendan Green

Reputation: 11954

Multiple MVC5 websites using a single website for authentication (ASP.NET Identity v2)

Looking for some guidance on using ASP.NET Identity to provide a single location for logon / authentication across a number of sites (that are all subdomains of a common domain).

The current setup is that I have 2 websites:

They present different views of the system to users, and they share the same backend database, and therefore the same ASP.NET Identity tables. Logging on via either site logs on via the same db.

What I want to do is unify the logon process via a third site:

The idea being that the user visits site1.example.com, clicks a login button, is redirected to auth.example.com, performs the log in, and is redirected back to site1.example.com.
If they then navigated to site2.example.com, it would be nice if they were seen to be authenticated already.

Upvotes: 2

Views: 1413

Answers (1)

David Daniel
David Daniel

Reputation: 144

What you seem to be looking for is single sign on. https://github.com/thinktecture/Thinktecture.IdentityServer.v3 Is the one that I like and it is open source. I think is supports ASP.NET Identity as a user service as well.

Upvotes: 2

Related Questions