Getting an access token in ASP.NET 5
问题 My ASP.NET 5 (MVC 6 + beta7) web application (MVC + WebAPI) is required to get back an access_token from WebAPI login calls. So far, from googling, I have created the following code for startup.cs: app.UseOAuthBearerAuthentication(options => { options.AutomaticAuthentication = true; options.Audience = "http://localhost:62100/"; options.Authority = "http://localhost:62100/"; }); My client side is: var login = function () { var url = "http://localhost:62100/"; var data = $("#userData")