I\'ve overridden the CredentialsAuthProvider like so:
public override bool TryAuthenticate(IServiceBase authService, string userName, string password)
{
The different places where you can set the Url to redirect to during ServiceStack Authentication, in order of precedence are:
/auth
Session.ReferrerUrl
UrlGiven these order of preferences, if the request didn't have a Continue parameter, it should use the session.ReferrerUrl
, so you could do:
if (roleA) session.ReferrerUrl = "http://myPage1Url";
if (roleB) session.ReferrerUrl = "http://myPage2Url";