Click or drag to resize

ImapLoginOAUTH2 Method

Logs user in using AUTHENTICATE XOAUTH2 command. This method does NOT send the password. You can use DotNetOpenAuth to create the key. You can check which authentication methods remote server supports using Capabilities and then AuthenticationMethods method.

Namespace:  Limilabs.Client.IMAP
Assembly:  Mail (in Mail.dll) Version: 3.0.23341.1754
Syntax
public void LoginOAUTH2(
	string user,
	string accessToken
)

Parameters

user
Type: SystemString
User's login (email address).
accessToken
Type: SystemString
OAuth 2.0 access token.
Exceptions
ExceptionCondition
ImapResponseExceptionThrows ImapResponseException on error response.
See Also