# MailSourceOauth2Type

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.MailSourceOauth2Type/

Mail source OAuth2 type enumeration.

- **Full name:** `MFiles.MailSourceOauth2Type`
- **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_TYPE_NONE"></a>`MAIL_SOURCE_OAUTH2_TYPE_NONE` | 0 | Undefined. |
| <a id="v-MAIL_SOURCE_OAUTH2_TYPE_MICROSOFT_OAUTH2"></a>`MAIL_SOURCE_OAUTH2_TYPE_MICROSOFT_OAUTH2` | 1 | Microsoft OAuth2 with Microsoft Authentication Library (MSAL). |
| <a id="v-MAIL_SOURCE_OAUTH2_TYPE_GOOGLE_OAUTH2"></a>`MAIL_SOURCE_OAUTH2_TYPE_GOOGLE_OAUTH2` | 2 | Google OAuth2. |

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

## Used in fields

- [`MailSourceOauth2.type`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.MailSourceOauth2/index.md#f-type): OAuth2 service to use.
