c# - How does the ServiceStack Auth redirect works? -


i'm trying follow bootstrap servicestack code http://bootstrapapi.apphb.com/

i can register new user, want (create new user on table extends userauth table) in createuserauth() method customuserauth it redirects http://localhost:50447/api/register

i want go home controller...

what simple way accomplish this?

in docs, under authentication, not explicit, , i'm using latest version date: v4.0.30 , i'm implementing custom credentialsauthprovider.

you can use ?continue=/path querystring parameter specify should redirect to.

if you're using own custom userauth tables (i.e instead of integrating existing userauth tables) should subclass ormliteauthrepository<t,t> class including custom poco's, e.g see source ormliteauthrepository:

public class ormliteauthrepository      : ormliteauthrepository<userauth, userauthdetails>, iuserauthrepository {     public ormliteauthrepository(idbconnectionfactory dbfactory)          : base(dbfactory) { } } 

Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -