Skip to main content

IAuthHttpGateway

Assembly: ServiceStack.dll
View Source
Declaration
public interface IAuthHttpGateway

Methods

VerifyTwitterAccessToken(String, String, String, String, out String, out String)

View Source
Declaration
bool VerifyTwitterAccessToken(string consumerKey, string consumerSecret, string accessToken, string accessTokenSecret, out string userId, out string email)
Returns

System.Boolean

Parameters
TypeName
System.StringconsumerKey
System.StringconsumerSecret
System.StringaccessToken
System.StringaccessTokenSecret
System.StringuserId
System.Stringemail

VerifyTwitterAccessTokenAsync(String, String, String, String, CancellationToken)

View Source
Declaration
Task<AuthId> VerifyTwitterAccessTokenAsync(string consumerKey, string consumerSecret, string accessToken, string accessTokenSecret, CancellationToken token = default(CancellationToken))
Returns

System.Threading.Tasks.Task<ServiceStack.Auth.AuthId>

Parameters
TypeName
System.StringconsumerKey
System.StringconsumerSecret
System.StringaccessToken
System.StringaccessTokenSecret
System.Threading.CancellationTokentoken

DownloadTwitterUserInfo(String, String, String, String, String)

View Source
Declaration
string DownloadTwitterUserInfo(string consumerKey, string consumerSecret, string accessToken, string accessTokenSecret, string twitterUserId)
Returns

System.String

Parameters
TypeName
System.StringconsumerKey
System.StringconsumerSecret
System.StringaccessToken
System.StringaccessTokenSecret
System.StringtwitterUserId

DownloadTwitterUserInfoAsync(String, String, String, String, String, CancellationToken)

View Source
Declaration
Task<string> DownloadTwitterUserInfoAsync(string consumerKey, string consumerSecret, string accessToken, string accessTokenSecret, string twitterUserId, CancellationToken token = default(CancellationToken))
Returns

System.Threading.Tasks.Task<System.String>

Parameters
TypeName
System.StringconsumerKey
System.StringconsumerSecret
System.StringaccessToken
System.StringaccessTokenSecret
System.StringtwitterUserId
System.Threading.CancellationTokentoken

VerifyFacebookAccessToken(String, String)

View Source
Declaration
bool VerifyFacebookAccessToken(string appId, string accessToken)
Returns

System.Boolean

Parameters
TypeName
System.StringappId
System.StringaccessToken

VerifyFacebookAccessTokenAsync(String, String, CancellationToken)

View Source
Declaration
Task<bool> VerifyFacebookAccessTokenAsync(string appId, string accessToken, CancellationToken token = default(CancellationToken))
Returns

System.Threading.Tasks.Task<System.Boolean>

Parameters
TypeName
System.StringappId
System.StringaccessToken
System.Threading.CancellationTokentoken

DownloadFacebookUserInfo(String, String[])

View Source
Declaration
string DownloadFacebookUserInfo(string facebookCode, params string[] fields)
Returns

System.String

Parameters
TypeName
System.StringfacebookCode
System.String[]fields

DownloadFacebookUserInfoAsync(String, String[], CancellationToken)

View Source
Declaration
Task<string> DownloadFacebookUserInfoAsync(string facebookCode, string[] fields, CancellationToken token = default(CancellationToken))
Returns

System.Threading.Tasks.Task<System.String>

Parameters
TypeName
System.StringfacebookCode
System.String[]fields
System.Threading.CancellationTokentoken

DownloadGithubUserInfo(String)

View Source
Declaration
string DownloadGithubUserInfo(string accessToken)
Returns

System.String

Parameters
TypeName
System.StringaccessToken

DownloadGithubUserInfoAsync(String, CancellationToken)

View Source
Declaration
Task<string> DownloadGithubUserInfoAsync(string accessToken, CancellationToken token = default(CancellationToken))
Returns

System.Threading.Tasks.Task<System.String>

Parameters
TypeName
System.StringaccessToken
System.Threading.CancellationTokentoken

DownloadGithubUserEmailsInfo(String)

View Source
Declaration
string DownloadGithubUserEmailsInfo(string accessToken)
Returns

System.String

Parameters
TypeName
System.StringaccessToken

DownloadGithubUserEmailsInfoAsync(String, CancellationToken)

View Source
Declaration
Task<string> DownloadGithubUserEmailsInfoAsync(string accessToken, CancellationToken token = default(CancellationToken))
Returns

System.Threading.Tasks.Task<System.String>

Parameters
TypeName
System.StringaccessToken
System.Threading.CancellationTokentoken

DownloadGoogleUserInfo(String)

View Source
Declaration
string DownloadGoogleUserInfo(string accessToken)
Returns

System.String

Parameters
TypeName
System.StringaccessToken

DownloadGoogleUserInfoAsync(String, CancellationToken)

View Source
Declaration
Task<string> DownloadGoogleUserInfoAsync(string accessToken, CancellationToken token = default(CancellationToken))
Returns

System.Threading.Tasks.Task<System.String>

Parameters
TypeName
System.StringaccessToken
System.Threading.CancellationTokentoken

DownloadMicrosoftUserInfo(String)

View Source
Declaration
string DownloadMicrosoftUserInfo(string accessToken)
Returns

System.String

Parameters
TypeName
System.StringaccessToken

DownloadMicrosoftUserInfoAsync(String, CancellationToken)

View Source
Declaration
Task<string> DownloadMicrosoftUserInfoAsync(string accessToken, CancellationToken token = default(CancellationToken))
Returns

System.Threading.Tasks.Task<System.String>

Parameters
TypeName
System.StringaccessToken
System.Threading.CancellationTokentoken

CreateMicrosoftPhotoUrl(String, String)

View Source
Declaration
string CreateMicrosoftPhotoUrl(string accessToken, string savePhotoSize = null)
Returns

System.String

Parameters
TypeName
System.StringaccessToken
System.StringsavePhotoSize

CreateMicrosoftPhotoUrlAsync(String, String, CancellationToken)

View Source
Declaration
Task<string> CreateMicrosoftPhotoUrlAsync(string accessToken, string savePhotoSize = null, CancellationToken token = default(CancellationToken))
Returns

System.Threading.Tasks.Task<System.String>

Parameters
TypeName
System.StringaccessToken
System.StringsavePhotoSize
System.Threading.CancellationTokentoken

DownloadYammerUserInfo(String)

View Source
Declaration
string DownloadYammerUserInfo(string yammerUserId)
Returns

System.String

Parameters
TypeName
System.StringyammerUserId

DownloadYammerUserInfoAsync(String)

View Source
Declaration
Task<string> DownloadYammerUserInfoAsync(string yammerUserId)
Returns

System.Threading.Tasks.Task<System.String>

Parameters
TypeName
System.StringyammerUserId