C# Class SalesForceSignIn.SalesforceClient

The Microsoft account client.
Inheritance: DotNetOpenAuth.AspNet.Clients.OAuth2Client
Afficher le fichier Open project: Teleopti/authbridge Class Usage Examples

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
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.

Method Details

GetServiceLoginUrl() protected méthode

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.
Résultat System.Uri

GetUserData() protected méthode

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. ///
Résultat string>.IDictionary

QueryAccessToken() protected méthode

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. ///
Résultat string

SalesforceClient() public méthode

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.
Résultat System

SalesforceClient() protected méthode

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.
Résultat System