 | ImapLoginOAUTHAsync Method |
Logs user in using AUTHENTICATE XOAUTH command. This method does NOT send the password.
You can use
OAuth class to create the key.
You can check which authentication methods remote server supports using
Capabilities and then
AuthenticationMethods method.
Namespace: Limilabs.Client.IMAPAssembly: Mail (in Mail.dll) Version: 3.0.26106.1555
Syntaxpublic Task LoginOAUTHAsync(
string key,
CancellationToken cancel = default
)
Public Function LoginOAUTHAsync (
key As String,
Optional cancel As CancellationToken = Nothing
) As Task
public:
Task^ LoginOAUTHAsync(
String^ key,
CancellationToken cancel = CancellationToken()
)
member LoginOAUTHAsync :
key : string *
?cancel : CancellationToken
(* Defaults:
let _cancel = defaultArg cancel new CancellationToken()
*)
-> Task Parameters
- key String
- XOAuth key. The key will be encoded using BASE64. You can use GetXOAuthKey method to create this key.
- cancel CancellationToken (Optional)
- A cancellation token that can be used to signal the asynchronous operation should be canceled.
Return Value
TaskA task that represents the asynchronous login operation.
Exceptions
See Also