Ews.LoginAsync Method
Namespace: Rebex.Net
Assembly: Rebex.Ews.dll (version 8.0.9673)
LoginAsync(EwsAuthentication, Object)
Authenticates the user to the Exchange server using the specified authentication method that does not require credentials (NTLM, Kerberos or Negotiate).
Declaration
public Task LoginAsync(EwsAuthentication method, object state = null)
Parameters
| Type | Name | Description |
|---|---|---|
| EwsAuthentication | method | Authentication method. |
| Object | state | An object containing state information for this request. |
Returns
| Type | Description |
|---|---|
| Task |
LoginAsync(String, EwsAuthentication, Object)
Authenticates the user to the Exchange server using an OAuth access token.
Declaration
public Task LoginAsync(string token, EwsAuthentication method, object state = null)
Parameters
| Type | Name | Description |
|---|---|---|
| String | token | Access token. |
| EwsAuthentication | method | Authentication method (only OAuth 2.0 is supported at the moment). |
| Object | state | An object containing state information for this request. |
Returns
| Type | Description |
|---|---|
| Task |
LoginAsync(String, String, Object)
Authenticates the user to the Exchange server.
Declaration
public Task LoginAsync(string userName, string password, object state = null)
Parameters
| Type | Name | Description |
|---|---|---|
| String | userName | User's login name. |
| String | password | User's password. |
| Object | state | An object containing state information for this request. |
Returns
| Type | Description |
|---|---|
| Task |
Remarks
This method tries to authenticate using the following methods, in this order of preference: NTLM, Kerberos, Negotiate, Basic.
LoginAsync(String, String, EwsAuthentication, Object)
Authenticates the user to the Exchange server.
Declaration
public Task LoginAsync(string userName, string password, EwsAuthentication method, object state = null)
Parameters
| Type | Name | Description |
|---|---|---|
| String | userName | User's login name. |
| String | password | User's password. |
| EwsAuthentication | method | Authentication method. |
| Object | state | An object containing state information for this request. |
Returns
| Type | Description |
|---|---|
| Task |