Skip to main content

AuthFeatureExtensions

Assembly: ServiceStack.dll
View Source
Declaration
public static class AuthFeatureExtensions

Fields

ValidUserNameRegEx

View Source
Declaration
public static Regex ValidUserNameRegEx

Methods

GetHtmlRedirect(AuthFeature)

View Source
Declaration
public static string GetHtmlRedirect(this AuthFeature feature)
Returns

System.String

Parameters
TypeName
ServiceStack.AuthFeaturefeature

GetHtmlRedirectUrl(AuthFeature, IRequest)

View Source
Declaration
public static string GetHtmlRedirectUrl(this AuthFeature feature, IRequest req)
Returns

System.String

Parameters
TypeName
ServiceStack.AuthFeaturefeature
ServiceStack.Web.IRequestreq

GetHtmlRedirectUrl(AuthFeature, IRequest, String, Boolean)

View Source
Declaration
public static string GetHtmlRedirectUrl(this AuthFeature feature, IRequest req, string redirectUrl, bool includeRedirectParam)
Returns

System.String

Parameters
TypeName
ServiceStack.AuthFeaturefeature
ServiceStack.Web.IRequestreq
System.StringredirectUrl
System.BooleanincludeRedirectParam

DoHtmlRedirect(AuthFeature, String, IRequest, IResponse, Boolean)

View Source
Declaration
public static void DoHtmlRedirect(this AuthFeature feature, string redirectUrl, IRequest req, IResponse res, bool includeRedirectParam)
Parameters
TypeName
ServiceStack.AuthFeaturefeature
System.StringredirectUrl
ServiceStack.Web.IRequestreq
ServiceStack.Web.IResponseres
System.BooleanincludeRedirectParam

IsValidUsername(AuthFeature, String)

View Source
Declaration
public static bool IsValidUsername(this AuthFeature feature, string userName)
Returns

System.Boolean

Parameters
TypeName
ServiceStack.AuthFeaturefeature
System.StringuserName

SuccessAuthResultAsync(IHttpResult, IServiceBase, IAuthSession)

View Source
Declaration
public static async Task<IHttpResult> SuccessAuthResultAsync(this IHttpResult result, IServiceBase service, IAuthSession session)
Returns

System.Threading.Tasks.Task<ServiceStack.Web.IHttpResult>

Parameters
TypeName
ServiceStack.Web.IHttpResultresult
ServiceStack.IServiceBaseservice
ServiceStack.Auth.IAuthSessionsession

SuccessAuthResult(IHttpResult, IServiceBase, IAuthSession)

View Source
Declaration
public static IHttpResult SuccessAuthResult(this IHttpResult result, IServiceBase service, IAuthSession session)
Returns

ServiceStack.Web.IHttpResult

Parameters
TypeName
ServiceStack.Web.IHttpResultresult
ServiceStack.IServiceBaseservice
ServiceStack.Auth.IAuthSessionsession

HandleFailedAuth(IAuthProvider, IAuthSession, IRequest, IResponse)

View Source
Declaration
public static Task HandleFailedAuth(this IAuthProvider authProvider, IAuthSession session, IRequest httpReq, IResponse httpRes)
Returns

System.Threading.Tasks.Task

Parameters
TypeName
ServiceStack.Auth.IAuthProviderauthProvider
ServiceStack.Auth.IAuthSessionsession
ServiceStack.Web.IRequesthttpReq
ServiceStack.Web.IResponsehttpRes