Custom authentication with Identity 2

Aug 1, 2015 at 8:49 PM
I've been reading a lot of material regarding Identity (very difficult to weed out articles for past versions!), because I'm trying to implement a custom authentication method, which should be very simple.

My application will be accessed by a simple link which will contain an Id in its URL. Since I can validate the referrer I'll accept anything they sent to me as "authenticated", and from that point on I want to use the [Authorize] attribute normally.

What is the right approach to do this with Identity 2 and ASP.NET 5?