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
Type | Name |
---|---|
System.String | consumerKey |
System.String | consumerSecret |
System.String | accessToken |
System.String | accessTokenSecret |
System.String | userId |
System.String |
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
Type | Name |
---|---|
System.String | consumerKey |
System.String | consumerSecret |
System.String | accessToken |
System.String | accessTokenSecret |
System.Threading.CancellationToken | token |
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
Type | Name |
---|---|
System.String | consumerKey |
System.String | consumerSecret |
System.String | accessToken |
System.String | accessTokenSecret |
System.String | twitterUserId |
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
Type | Name |
---|---|
System.String | consumerKey |
System.String | consumerSecret |
System.String | accessToken |
System.String | accessTokenSecret |
System.String | twitterUserId |
System.Threading.CancellationToken | token |
VerifyFacebookAccessToken(String, String)
View Source
Declaration
bool VerifyFacebookAccessToken(string appId, string accessToken)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.String | appId |
System.String | accessToken |
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
Type | Name |
---|---|
System.String | appId |
System.String | accessToken |
System.Threading.CancellationToken | token |
DownloadFacebookUserInfo(String, String[])
View Source
Declaration
string DownloadFacebookUserInfo(string facebookCode, params string[] fields)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | facebookCode |
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
Type | Name |
---|---|
System.String | facebookCode |
System.String[] | fields |
System.Threading.CancellationToken | token |
DownloadGithubUserInfo(String)
View Source
Declaration
string DownloadGithubUserInfo(string accessToken)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | accessToken |
DownloadGithubUserInfoAsync(String, CancellationToken)
View Source
Declaration
Task<string> DownloadGithubUserInfoAsync(string accessToken, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<System.String>
Parameters
Type | Name |
---|---|
System.String | accessToken |
System.Threading.CancellationToken | token |
DownloadGithubUserEmailsInfo(String)
View Source
Declaration
string DownloadGithubUserEmailsInfo(string accessToken)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | accessToken |
DownloadGithubUserEmailsInfoAsync(String, CancellationToken)
View Source
Declaration
Task<string> DownloadGithubUserEmailsInfoAsync(string accessToken, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<System.String>
Parameters
Type | Name |
---|---|
System.String | accessToken |
System.Threading.CancellationToken | token |
DownloadGoogleUserInfo(String)
View Source
Declaration
string DownloadGoogleUserInfo(string accessToken)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | accessToken |
DownloadGoogleUserInfoAsync(String, CancellationToken)
View Source
Declaration
Task<string> DownloadGoogleUserInfoAsync(string accessToken, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<System.String>
Parameters
Type | Name |
---|---|
System.String | accessToken |
System.Threading.CancellationToken | token |
DownloadMicrosoftUserInfo(String)
View Source
Declaration
string DownloadMicrosoftUserInfo(string accessToken)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | accessToken |
DownloadMicrosoftUserInfoAsync(String, CancellationToken)
View Source
Declaration
Task<string> DownloadMicrosoftUserInfoAsync(string accessToken, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<System.String>
Parameters
Type | Name |
---|---|
System.String | accessToken |
System.Threading.CancellationToken | token |
CreateMicrosoftPhotoUrl(String, String)
View Source
Declaration
string CreateMicrosoftPhotoUrl(string accessToken, string savePhotoSize = null)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | accessToken |
System.String | savePhotoSize |
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
Type | Name |
---|---|
System.String | accessToken |
System.String | savePhotoSize |
System.Threading.CancellationToken | token |
DownloadYammerUserInfo(String)
View Source
Declaration
string DownloadYammerUserInfo(string yammerUserId)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | yammerUserId |
DownloadYammerUserInfoAsync(String)
View Source
Declaration
Task<string> DownloadYammerUserInfoAsync(string yammerUserId)
Returns
System.Threading.Tasks.Task<System.String>
Parameters
Type | Name |
---|---|
System.String | yammerUserId |