Interface IOAuth2SmtpClient
A contract specifying the ability to authenticate an SMTP client with an OAuth 2 endpoint.
Namespace: DotNetNuke.Services.Mail.OAuth
Assembly: DotNetNuke.dll
Syntax
public interface IOAuth2SmtpClient
Methods
| Improve this Doc View SourceAuthenticate(String, String)
Authenticates this SMTP client with the given OAuth credentials.
Declaration
void Authenticate(string username, string token)
Parameters
Type | Name | Description |
---|---|---|
System.String | username | The username. |
System.String | token | The auth token. |
AuthenticateAsync(String, String, CancellationToken)
Authenticates this SMTP client with the given OAuth credentials.
Declaration
Task AuthenticateAsync(string username, string token, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | username | The username. |
System.String | token | The auth token. |
CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
Task | A |