Skip to main content

AuthHttpGateway

Assembly: ServiceStack.dll
View Source
Declaration
public class AuthHttpGateway : IAuthHttpGateway

Fields

Log

View Source
Declaration
protected static readonly ILog Log

TwitterUserUrl

View Source
Declaration
public static string TwitterUserUrl

TwitterVerifyCredentialsUrl

View Source
Declaration
public static string TwitterVerifyCredentialsUrl

FacebookUserUrl

View Source
Declaration
public static string FacebookUserUrl

FacebookVerifyTokenUrl

View Source
Declaration
public static string FacebookVerifyTokenUrl

YammerUserUrl

View Source
Declaration
public static string YammerUserUrl

GithubUserUrl

View Source
Declaration
public static string GithubUserUrl

GithubUserEmailsUrl

View Source
Declaration
public static string GithubUserEmailsUrl

Methods

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

View Source
Declaration
public 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
public async 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

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

View Source
Declaration
public 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
public async 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

GetJsonFromOAuthUrl(String, String, String, String, String, String)

View Source
Declaration
public static string GetJsonFromOAuthUrl(string consumerKey, string consumerSecret, string accessToken, string accessTokenSecret, string url, string data = null)
Returns

System.String

Parameters
TypeName
System.StringconsumerKey
System.StringconsumerSecret
System.StringaccessToken
System.StringaccessTokenSecret
System.Stringurl
System.Stringdata

GetJsonFromOAuthUrlAsync(String, String, String, String, String, String, CancellationToken)

View Source
Declaration
public static async Task<string> GetJsonFromOAuthUrlAsync(string consumerKey, string consumerSecret, string accessToken, string accessTokenSecret, string url, string data = null, CancellationToken token = default(CancellationToken))
Returns

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

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

VerifyFacebookAccessToken(String, String)

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

System.Boolean

Parameters
TypeName
System.StringappId
System.StringaccessToken

VerifyFacebookAccessTokenAsync(String, String, CancellationToken)

View Source
Declaration
public async 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
public string DownloadFacebookUserInfo(string facebookCode, params string[] fields)
Returns

System.String

Parameters
TypeName
System.StringfacebookCode
System.String[]fields

DownloadFacebookUserInfoAsync(String, String[], CancellationToken)

View Source
Declaration
public async 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

GetJsonFromGitHub(String, String)

View Source
Declaration
public string GetJsonFromGitHub(string url, string accessToken)
Returns

System.String

Parameters
TypeName
System.Stringurl
System.StringaccessToken

GetJsonFromGitHubAsync(String, String, CancellationToken)

View Source
Declaration
public async Task<string> GetJsonFromGitHubAsync(string url, string accessToken, CancellationToken token = default(CancellationToken))
Returns

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

Parameters
TypeName
System.Stringurl
System.StringaccessToken
System.Threading.CancellationTokentoken

DownloadGithubUserInfo(String)

View Source
Declaration
public string DownloadGithubUserInfo(string accessToken)
Returns

System.String

Parameters
TypeName
System.StringaccessToken

DownloadGithubUserInfoAsync(String, CancellationToken)

View Source
Declaration
public 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
public string DownloadGithubUserEmailsInfo(string accessToken)
Returns

System.String

Parameters
TypeName
System.StringaccessToken

DownloadGithubUserEmailsInfoAsync(String, CancellationToken)

View Source
Declaration
public 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
public string DownloadGoogleUserInfo(string accessToken)
Returns

System.String

Parameters
TypeName
System.StringaccessToken

DownloadGoogleUserInfoAsync(String, CancellationToken)

View Source
Declaration
public async 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
public string DownloadMicrosoftUserInfo(string accessToken)
Returns

System.String

Parameters
TypeName
System.StringaccessToken

DownloadMicrosoftUserInfoAsync(String, CancellationToken)

View Source
Declaration
public async 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
public string CreateMicrosoftPhotoUrl(string accessToken, string savePhotoSize = null)
Returns

System.String

Parameters
TypeName
System.StringaccessToken
System.StringsavePhotoSize

CreateMicrosoftPhotoUrlAsync(String, String, CancellationToken)

View Source
Declaration
public async 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)

Download Yammer User Info given its ID.

<p> Yammer provides a method to retrieve current user information via "https://www.yammer.com/api/v1/users/current.json". </p> <p> However, to ensure consistency with the rest of the Auth codebase, the explicit URL will be used, where [:id] denotes the User ID: "https://www.yammer.com/api/v1/users/[:id].json" </p> <p> Refer to: https://developer.yammer.com/restapi/ for full documentation. </p>

View Source
Declaration
public string DownloadYammerUserInfo(string yammerUserId)
Returns

System.String: The User info in JSON format.

<p> Yammer provides a method to retrieve current user information via "https://www.yammer.com/api/v1/users/current.json". </p> <p> However, to ensure consistency with the rest of the Auth codebase, the explicit URL will be used, where [:id] denotes the User ID: "https://www.yammer.com/api/v1/users/[:id].json" </p> <p> Refer to: https://developer.yammer.com/restapi/ for full documentation. </p>

Parameters
TypeNameDescription
System.StringyammerUserId

The Yammer User ID.

<p> Yammer provides a method to retrieve current user information via "https://www.yammer.com/api/v1/users/current.json". </p> <p> However, to ensure consistency with the rest of the Auth codebase, the explicit URL will be used, where [:id] denotes the User ID: "https://www.yammer.com/api/v1/users/[:id].json" </p> <p> Refer to: https://developer.yammer.com/restapi/ for full documentation. </p>

|

DownloadYammerUserInfoAsync(String)

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

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

Parameters
TypeName
System.StringyammerUserId

Implements