# MailSourceOauth2Status

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Reference](https://developer.m-files.com/APIs/gRPC-API/Reference/index.md) > [Enums](https://developer.m-files.com/APIs/gRPC-API/Reference/Enums/index.md)

HTML version: https://developer.m-files.com/APIs/gRPC-API/Reference/Enums/MFiles.MailSourceOauth2Status/

External mail source OAuth2 type enumeration.

- **Full name:** `MFiles.MailSourceOauth2Status`
- **Proto file:** [`mfiles/enums.proto`](https://developer.m-files.com/APIs/gRPC-API/downloads/proto/mfiles/enums.proto)

<a id="values"></a>

## Values

| Name | Number | Description |
|---|---|---|
| <a id="v-MAIL_SOURCE_OAUTH2_STATUS_NONE"></a>`MAIL_SOURCE_OAUTH2_STATUS_NONE` | 0 | Undefined. |
| <a id="v-MAIL_SOURCE_OAUTH2_STATUS_ERROR"></a>`MAIL_SOURCE_OAUTH2_STATUS_ERROR` | 1 | Error in Authentication. |
| <a id="v-MAIL_SOURCE_OAUTH2_STATUS_AUTHENTICATED"></a>`MAIL_SOURCE_OAUTH2_STATUS_AUTHENTICATED` | 2 | Authentication has been successfully done. |
| <a id="v-MAIL_SOURCE_OAUTH2_STATUS_EXPIRED"></a>`MAIL_SOURCE_OAUTH2_STATUS_EXPIRED` | 3 | Authentication has expired. |

<a id="used-in-fields"></a>

## Used in fields

- [`MailSourceOauth2.status`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.MailSourceOauth2/index.md#f-status): Authentication status.
