| 1 |
/* |
| 2 |
* SPDX-FileCopyrightText: (C) 2018 Red Hat, Inc. (www.redhat.com) |
| 3 |
* SPDX-License-Identifier: LGPL-2.1-or-later |
| 4 |
*/ |
| 5 |
|
| 6 |
#include "evolution-ews-config.h" |
| 7 |
|
| 8 |
#include <glib/gi18n-lib.h> |
| 9 |
|
| 10 |
#include "camel-sasl-xoauth2-office365.h" |
| 11 |
|
| 12 |
static CamelServiceAuthType sasl_xoauth2_office365_auth_type = { |
| 13 |
N_("OAuth2 (Office365)"), |
| 14 |
N_("This option will use an OAuth 2.0 " |
| 15 |
"access token to connect to the Office365.com server"), |
| 16 |
"Office365", |
| 17 |
FALSE |
| 18 |
}; |
| 19 |
|
| 20 |
G_DEFINE_DYNAMIC_TYPE (CamelSaslXOAuth2Office365, camel_sasl_xoauth2_office365, CAMEL_TYPE_SASL_XOAUTH2) |
| 21 |
|
| 22 |
static void |
| 23 |
camel_sasl_xoauth2_office365_class_init (CamelSaslXOAuth2Office365Class *klass) |
| 24 |
{ |
| 25 |
CamelSaslClass *sasl_class; |
| 26 |
|
| 27 |
sasl_class = CAMEL_SASL_CLASS (klass); |
| 28 |
sasl_class->auth_type = &sasl_xoauth2_office365_auth_type; |
| 29 |
} |
| 30 |
|
| 31 |
static void |
| 32 |
camel_sasl_xoauth2_office365_class_finalize (CamelSaslXOAuth2Office365Class *klass) |
| 33 |
{ |
| 34 |
} |
| 35 |
|
| 36 |
static void |
| 37 |
camel_sasl_xoauth2_office365_init (CamelSaslXOAuth2Office365 *sasl) |
| 38 |
{ |
| 39 |
} |
| 40 |
|
| 41 |
void |
| 42 |
camel_sasl_xoauth2_office365_type_register (GTypeModule *type_module) |
| 43 |
{ |
| 44 |
camel_sasl_xoauth2_office365_register_type (type_module); |
| 45 |
} |