Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

OAuthBearer Authentication 1.0.0-beta7 in ASP.NET 5 (vNext)

$
0
0

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!


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>