asp.net mvc 4 - Is this a bug in ServiceStack / Authentication? -


trying use servicestack authentication, , have re-direct login page follows:

plugins.add(new authfeature(             () => new customusersession(), //use own typed custom usersession type             new iauthprovider[] {                 new credentialsauthprovider(),              //html form post of username/password credentials                 new twitterauthprovider(appsettings),       //sign-in twitter                 new facebookauthprovider(appsettings),      //sign-in facebook                 new digestauthprovider(appsettings),        //sign-in digest auth                 new basicauthprovider(),                    //sign-in basic auth                 new googleopenidoauthprovider(appsettings), //sign-in google openid                 new yahooopenidoauthprovider(appsettings),  //sign-in yahoo openid                 new openidoauthprovider(appsettings),       //sign-in custom openid             }, "http://www.anyurihereisignored.com")); 

however uri argument in case "http://www.anyurihereisignored.com" ignored.

looking @ class definition authfeature, see htmlredirect param declared optional default value of "~/login", appears using value , ignoring whatever passed in. seems although htmlredirect value gets set passed uri, somehow internally never using that, instead defaulting "~/login". else experiencing same issue?

if you're using mvc4 , controllers inheriting servicestackcontroller<> per servicestack doco, may want try overriding loginredirecturl property:

public override string loginredirecturl {     { return "/account/login?redirect={0}"; } } 

this redirect unauthenticated requests secured actions login url composed specified value.

you should make sure remove asp.net membership modules web.config if want use servicestack auth in mvc.


Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -