summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2018-01-22 13:32:29 +0100
committerMilan Crha <mcrha@redhat.com>2018-01-22 13:32:29 +0100
commit9a4c9d6a58e6dd5d4bbf3f8dc5d79040219dfbca (patch)
treedf078253f22bcd8c33802c8156b3892b32ba78cf /data
parent01857f50c25d411f5ed83bff2d4554c65e3947bd (diff)
downloadevolution-data-server-9a4c9d6a58e6dd5d4bbf3f8dc5d79040219dfbca.tar.gz
Change how built-in OAuth2 authentication works
This change allows easier extending of built-in OAuth2 authentications with minimal code "duplication". A CMake option ENABLE_GOOGLE_AUTH had been renamed to ENABLE_OAUTH2 to reflect this extensibility as well.
Diffstat (limited to 'data')
-rw-r--r--data/org.gnome.evolution-data-server.gschema.xml.in17
1 files changed, 17 insertions, 0 deletions
diff --git a/data/org.gnome.evolution-data-server.gschema.xml.in b/data/org.gnome.evolution-data-server.gschema.xml.in
index a669207cd..805f6895d 100644
--- a/data/org.gnome.evolution-data-server.gschema.xml.in
+++ b/data/org.gnome.evolution-data-server.gschema.xml.in
@@ -29,5 +29,22 @@
<_summary>A list of variables which can be part of the autoconfig .source files</_summary>
<_description>Each item of the array is expected to be of the form: name=value. These variables are checked before environment variables, but after the predefined USER, REALNAME and HOST variables.</_description>
</key>
+ <key name="oauth2-services-hint" type="as">
+ <default>['']</default>
+ <_summary>A list of hints for OAuth2 services</_summary>
+ <_description>Users can extend the list of supported protocols and hostnames for defined OAuth2 services, in addition to those hard-coded.
+ Each line can be of the form:
+ servicename[-protocol]:hostname1,hostname2,...
+ where 'servicename' is the actual service name;
+ the '-protocol' is optional, and if written, then the service can be used only if both 'protocol' and 'hostnameX' match;
+ the 'hostnameX' is the actual host name to compare with, case insensitively.
+ Each line can contain multiple values, separated by comma. There can be provided multiple lines
+ for one OAuth2 service. Note that the actual URL where the token is requested and refreshed cannot
+ be changed here, the hostname is to allow other servers, where the OAuth2 service can be used.
+
+ Examples:
+ Company:mail.company.com - enables 'Company' OAuth2 authentication for 'mail.company.com' host
+ Company-CalDAV:caldav.company.com - enables 'Company' OAuth2 authentication for any 'CalDAV' source, which reads data from 'caldav.companycaldav.com' host</_description>
+ </key>
</schema>
</schemalist>