I currently have two web applications, one of which is a web api, which both have it's own implementation of ASP.NET Identity for authenticating users (first one is cookie and second one is bearer tokens). I need, in the near future, to add a third web site to the family and was thinking to move the authentication logic in a standalone web application which could serve all the orhers.
For example: instead of authenticating to www.mysite.com
and/or api.mysite.com
, I would like that both the applications could authenticate against a new website, like e.g. login.mysite.com
, as microsoft does.
How can I achieve something like this? Does somebody has any direction to start with?