summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2018-01-24 09:09:00 +0100
committerMilan Crha <mcrha@redhat.com>2018-01-24 09:09:00 +0100
commit3885a543c549e40d36f59b0538d3ae90d386fd37 (patch)
tree193f41f6cf20bd77e5f33a9ec598517d0589a040 /CMakeLists.txt
parent4963283ad8c144a6daab0d24ba1c404bb1c8d61f (diff)
downloadevolution-data-server-3885a543c549e40d36f59b0538d3ae90d386fd37.tar.gz
Add OAuth2 authentication for Outlook.com IMAP and SMTP
It looks like the IMAP accepts an @outlook.com address, while SMTP accepts only the primary address of the Microsoft account, which not necessarily is the same @outlook.com address.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a6d583b13..803e3f2b7 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -402,6 +402,18 @@ if(ENABLE_OAUTH2)
if(WITH_GOOGLE_CLIENT_SECRET STREQUAL "")
set(WITH_GOOGLE_CLIENT_SECRET "mtfUe5W8Aal9DcgVipOY1T9G")
endif(WITH_GOOGLE_CLIENT_SECRET STREQUAL "")
+
+ add_printable_variable(WITH_OUTLOOK_CLIENT_ID "Outlook.com OAuth 2.0 client id" "")
+ add_printable_variable(WITH_OUTLOOK_CLIENT_SECRET "Outlook.com OAuth 2.0 client secret" "")
+
+ if(WITH_OUTLOOK_CLIENT_ID STREQUAL "")
+ set(WITH_OUTLOOK_CLIENT_ID "cc6e0693-0e26-4220-8322-9d363e308fc6")
+ endif(WITH_OUTLOOK_CLIENT_ID STREQUAL "")
+
+ # Outlook.com requires client secret only for Web applications
+ #if(WITH_OUTLOOK_CLIENT_SECRET STREQUAL "")
+ # set(WITH_OUTLOOK_CLIENT_SECRET "")
+ #endif(WITH_OUTLOOK_CLIENT_SECRET STREQUAL "")
endif(ENABLE_OAUTH2)
# ******************************************