OnAuthorizeAccount()
<< Click to Display Table of Contents >> OnAuthorizeAccount() |
If the IsAuthorizationRequired property is set to true, this method will be called when the user clicks the Connect button in the Share Services dialogue under Tools -> Options. When this method is called, it will allow you go through the handshake process for authorizing the account to a sharing service. For example, you can obtain user tokens for posting on their behalf to social networks using OAuth authentication.
Documentation on the OAuth handshake process can be found from the official OAuth website: http://oauth.net/code/
Specific documentation for the authorization process for a particular sharing service can be found on it's public API resources located on their website.
An asynchronous Task
This method does not require any parameters
This method is not required to be overridden. You may override the method in your Share Service with the following syntax if needed:
public override async Task OnAuthorizeAccount()
{
}
public override async Task OnAuthorizeAccount() |