I'm working with ASP.NET 5 (vNext) application. I'm trying to implement Token Based Authentication but can not figure out how to use new Security System for my case. I went through examples but they didn't help me much, they are using either cookie authentication or external authentication (GitHub, Microsoft, Twitter).
What my scenario is: angularjs application should request /token url passing username and password. WebApi should authorize user and return access_token which will be used by angularjs app in following requests.
My question is: how to configure ASP.NET 5 WebApi 1.0.0-beta7 application to work with OAuthBearer authentication?
If you can create a sample with this, I will greatly appreciate your kindness.
Thank you!