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
Type | Name |
---|---|
ServiceStack.AuthFeature | feature |
GetHtmlRedirectUrl(AuthFeature, IRequest)
View Source
Declaration
public static string GetHtmlRedirectUrl(this AuthFeature feature, IRequest req)
Returns
System.String
Parameters
Type | Name |
---|---|
ServiceStack.AuthFeature | feature |
ServiceStack.Web.IRequest | req |
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
Type | Name |
---|---|
ServiceStack.AuthFeature | feature |
ServiceStack.Web.IRequest | req |
System.String | redirectUrl |
System.Boolean | includeRedirectParam |
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
Type | Name |
---|---|
ServiceStack.AuthFeature | feature |
System.String | redirectUrl |
ServiceStack.Web.IRequest | req |
ServiceStack.Web.IResponse | res |
System.Boolean | includeRedirectParam |
IsValidUsername(AuthFeature, String)
View Source
Declaration
public static bool IsValidUsername(this AuthFeature feature, string userName)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.AuthFeature | feature |
System.String | userName |
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
Type | Name |
---|---|
ServiceStack.Web.IHttpResult | result |
ServiceStack.IServiceBase | service |
ServiceStack.Auth.IAuthSession | session |
SuccessAuthResult(IHttpResult, IServiceBase, IAuthSession)
View Source
Declaration
public static IHttpResult SuccessAuthResult(this IHttpResult result, IServiceBase service, IAuthSession session)
Returns
Parameters
Type | Name |
---|---|
ServiceStack.Web.IHttpResult | result |
ServiceStack.IServiceBase | service |
ServiceStack.Auth.IAuthSession | session |
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
Type | Name |
---|---|
ServiceStack.Auth.IAuthProvider | authProvider |
ServiceStack.Auth.IAuthSession | session |
ServiceStack.Web.IRequest | httpReq |
ServiceStack.Web.IResponse | httpRes |