How can I integrate OWIN Authentication Middleware and Sitecore -


i have implemented mvc application running sitecore. startup class of owin have implemented following that:

[assembly: owinstartupattribute(typeof(webapplication1.startup))] namespace webapplication1.web {    public class startup    {        public void configuration(iappbuilder app)        {           configureauth(app);        }         public void configureauth(iappbuilder app)        {            app.createperowincontext<appidentitydbcontext>(appidentitydbcontext.create);            app.createperowincontext<appusermanager>(appusermanager.create);            app.createperowincontext<approlemanager>(approlemanager.create);             app.useoauthbearertokens(new oauthauthorizationserveroptions            {               provider = new appoauthprovider(),               allowinsecurehttp = true,               tokenendpointpath = new pathstring("/authenticate")            });       }   } } 

i have expected when submit username, password , grant_type value password method post url http://<>/authenticate token bearer return allows user can log in. unfortunately, sitecore throw content not found , cannot figure out way let request going owin middle authorization. how can sort out?


Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -