MailSourceOauth2

View as Markdown

Struct for OAuth2 specific external mail source data.

Full nameMFiles.MailSourceOauth2
Proto filemfiles/structs.proto

Fields

FieldTypeNumberDescription
typeMailSourceOauth2Type1OAuth2 service to use.Values: MAIL_SOURCE_OAUTH2_TYPE_NONE (0), MAIL_SOURCE_OAUTH2_TYPE_MICROSOFT_OAUTH2 (1), MAIL_SOURCE_OAUTH2_TYPE_GOOGLE_OAUTH2 (2).
statusMailSourceOauth2Status2Authentication status.Values: MAIL_SOURCE_OAUTH2_STATUS_NONE (0), MAIL_SOURCE_OAUTH2_STATUS_ERROR (1), MAIL_SOURCE_OAUTH2_STATUS_AUTHENTICATED (2), MAIL_SOURCE_OAUTH2_STATUS_EXPIRED (3).
user_infostring3Information about the authenticated user (account name etc.).
configurationstring4Configuration for authentication in JSON format as name-value pairs. Use names as defined in OAuth2 standard.
token_cachebytes5Token cache. For Google OAuth2 this is in JSON format. For MSAL this is in its internal binary format.
proxy_addressstring6Proxy address if used.

Used in fields