Skip to main content

HttpRequestAuthentication

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

Methods

GetAuthorization(IRequest)

View Source
Declaration
public static string GetAuthorization(this IRequest req)
Returns

System.String

Parameters
TypeName
ServiceStack.Web.IRequestreq

GetBearerToken(IRequest)

View Source
Declaration
public static string GetBearerToken(this IRequest req)
Returns

System.String

Parameters
TypeName
ServiceStack.Web.IRequestreq

GetJwtToken(IRequest)

View Source
Declaration
public static string GetJwtToken(this IRequest req)
Returns

System.String

Parameters
TypeName
ServiceStack.Web.IRequestreq

GetJwtRefreshToken(IRequest)

View Source
Declaration
public static string GetJwtRefreshToken(this IRequest req)
Returns

System.String

Parameters
TypeName
ServiceStack.Web.IRequestreq

GetAuthSecret(IRequest)

View Source
Declaration
public static string GetAuthSecret(this IRequest httpReq)
Returns

System.String

Parameters
TypeName
ServiceStack.Web.IRequesthttpReq

GetBasicAuth(IRequest)

View Source
Declaration
public static string GetBasicAuth(this IRequest req)
Returns

System.String

Parameters
TypeName
ServiceStack.Web.IRequestreq

GetBasicAuthUserAndPassword(IRequest)

View Source
Declaration
public static KeyValuePair<string, string>? GetBasicAuthUserAndPassword(this IRequest httpReq)
Returns

System.Nullable<System.Collections.Generic.KeyValuePair<System.String,System.String>>

Parameters
TypeName
ServiceStack.Web.IRequesthttpReq

GetDigestAuth(IRequest)

View Source
Declaration
public static Dictionary<string, string> GetDigestAuth(this IRequest httpReq)
Returns

System.Collections.Generic.Dictionary<System.String,System.String>

Parameters
TypeName
ServiceStack.Web.IRequesthttpReq

GetCookieValue(IRequest, String)

View Source
Declaration
public static string GetCookieValue(this IRequest httpReq, string cookieName)
Returns

System.String

Parameters
TypeName
ServiceStack.Web.IRequesthttpReq
System.StringcookieName

GetItemStringValue(IRequest, String)

View Source
Declaration
public static string GetItemStringValue(this IRequest httpReq, string itemName)
Returns

System.String

Parameters
TypeName
ServiceStack.Web.IRequesthttpReq
System.StringitemName