Skip to main content

OAuthAuthorizer

Assembly: ServiceStack.dll
View Source
Declaration
public class OAuthAuthorizer

Fields

OrderHeadersLexically

View Source
Declaration
public static bool OrderHeadersLexically

xAuthUsername

View Source
Declaration
public string xAuthUsername

xAuthPassword

View Source
Declaration
public string xAuthPassword

RequestToken

View Source
Declaration
public string RequestToken

RequestTokenSecret

View Source
Declaration
public string RequestTokenSecret

AuthorizationToken

View Source
Declaration
public string AuthorizationToken

AuthorizationVerifier

View Source
Declaration
public string AuthorizationVerifier

AccessToken

View Source
Declaration
public string AccessToken

AccessTokenSecret

View Source
Declaration
public string AccessTokenSecret

AuthInfo

View Source
Declaration
public Dictionary<string, string> AuthInfo

Methods

AcquireRequestToken()

View Source
Declaration
public bool AcquireRequestToken()
Returns

System.Boolean

AcquireAccessToken(String, String, String)

View Source
Declaration
public bool AcquireAccessToken(string requestTokenSecret, string authorizationToken, string authorizationVerifier)
Returns

System.Boolean

Parameters
TypeName
System.StringrequestTokenSecret
System.StringauthorizationToken
System.StringauthorizationVerifier

AuthorizeRequest(OAuthProvider, String, String, String, Uri, String)

View Source
Declaration
public static string AuthorizeRequest(OAuthProvider provider, string oauthToken, string oauthTokenSecret, string method, Uri uri, string data)
Returns

System.String

Parameters
TypeName
ServiceStack.Auth.OAuthProviderprovider
System.StringoauthToken
System.StringoauthTokenSecret
System.Stringmethod
System.Uriuri
System.Stringdata

AuthorizeRequest(String, String, String, String, String, Uri, String)

View Source
Declaration
public static string AuthorizeRequest(string consumerKey, string consumerSecret, string oauthToken, string oauthTokenSecret, string method, Uri uri, string data)
Returns

System.String

Parameters
TypeName
System.StringconsumerKey
System.StringconsumerSecret
System.StringoauthToken
System.StringoauthTokenSecret
System.Stringmethod
System.Uriuri
System.Stringdata

AuthorizeTwitPic(OAuthProvider, HttpWebRequest, String, String)

View Source
Declaration
public static void AuthorizeTwitPic(OAuthProvider provider, HttpWebRequest wc, string oauthToken, string oauthTokenSecret)
Parameters
TypeName
ServiceStack.Auth.OAuthProviderprovider
System.Net.HttpWebRequestwc
System.StringoauthToken
System.StringoauthTokenSecret