C# Класс SalesForceSignIn.SalesforceClient

The Microsoft account client.
Наследование: DotNetOpenAuth.AspNet.Clients.OAuth2Client
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
SalesforceClient ( string appId, string appSecret ) : System

Initializes a new instance of the MicrosoftClient class. Requests a scope of "wl.basic" by default, but "wl.signin" is a good minimal alternative.

Защищенные методы

Метод Описание
GetServiceLoginUrl ( Uri returnUrl ) : Uri

Gets the full url pointing to the login page for this client. The url should include the specified return url so that when the login completes, user is redirected back to that url.

GetUserData ( string accessToken ) : string>.IDictionary

Given the access token, gets the logged-in user's data. The returned dictionary must include two keys 'id', and 'username'.

QueryAccessToken ( Uri returnUrl, string authorizationCode ) : string

Queries the access token from the specified authorization code.

SalesforceClient ( string providerName, string appId, string appSecret, string requestedScopes ) : System

Initializes a new instance of the MicrosoftClient class.

Описание методов

GetServiceLoginUrl() защищенный Метод

Gets the full url pointing to the login page for this client. The url should include the specified return url so that when the login completes, user is redirected back to that url.
protected GetServiceLoginUrl ( Uri returnUrl ) : Uri
returnUrl System.Uri The return URL.
Результат System.Uri

GetUserData() защищенный Метод

Given the access token, gets the logged-in user's data. The returned dictionary must include two keys 'id', and 'username'.
protected GetUserData ( string accessToken ) : string>.IDictionary
accessToken string /// The access token of the current user. ///
Результат string>.IDictionary

QueryAccessToken() защищенный Метод

Queries the access token from the specified authorization code.
protected QueryAccessToken ( Uri returnUrl, string authorizationCode ) : string
returnUrl System.Uri /// The return URL. ///
authorizationCode string /// The authorization code. ///
Результат string

SalesforceClient() публичный Метод

Initializes a new instance of the MicrosoftClient class. Requests a scope of "wl.basic" by default, but "wl.signin" is a good minimal alternative.
public SalesforceClient ( string appId, string appSecret ) : System
appId string The app id.
appSecret string The app secret.
Результат System

SalesforceClient() защищенный Метод

Initializes a new instance of the MicrosoftClient class.
protected SalesforceClient ( string providerName, string appId, string appSecret, string requestedScopes ) : System
providerName string The provider name.
appId string The app id.
appSecret string The app secret.
requestedScopes string One or more requested scopes.
Результат System