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
Post a Comment