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
Type | Name |
---|---|
ServiceStack.Web.IRequest | req |
GetBearerToken(IRequest)
View Source
Declaration
public static string GetBearerToken(this IRequest req)
Returns
System.String
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | req |
GetJwtToken(IRequest)
View Source
Declaration
public static string GetJwtToken(this IRequest req)
Returns
System.String
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | req |
GetJwtRefreshToken(IRequest)
View Source
Declaration
public static string GetJwtRefreshToken(this IRequest req)
Returns
System.String
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | req |
GetAuthSecret(IRequest)
View Source
Declaration
public static string GetAuthSecret(this IRequest httpReq)
Returns
System.String
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | httpReq |
GetBasicAuth(IRequest)
View Source
Declaration
public static string GetBasicAuth(this IRequest req)
Returns
System.String
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | req |
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
Type | Name |
---|---|
ServiceStack.Web.IRequest | httpReq |
GetDigestAuth(IRequest)
View Source
Declaration
public static Dictionary<string, string> GetDigestAuth(this IRequest httpReq)
Returns
System.Collections.Generic.Dictionary<System.String,System.String>
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | httpReq |
GetCookieValue(IRequest, String)
View Source
Declaration
public static string GetCookieValue(this IRequest httpReq, string cookieName)
Returns
System.String
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | httpReq |
System.String | cookieName |
GetItemStringValue(IRequest, String)
View Source
Declaration
public static string GetItemStringValue(this IRequest httpReq, string itemName)
Returns
System.String
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | httpReq |
System.String | itemName |