aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/caldav/config.sample
diff options
context:
space:
mode:
authorRandy Ramos <rramos1295@gmail.com>2017-09-04 19:20:16 -0400
committerLukas Fleischer <lfleischer@calcurse.org>2017-09-08 22:35:36 +0200
commit479e39fbb7393dcca7d3a475a09128b8c7ea7a43 (patch)
tree938e355877e088a8b912af721679bf03f7e7bb32 /contrib/caldav/config.sample
parent1e1d61585ded01891de74f01b88fc03c8ab89bb2 (diff)
downloadcalcurse-479e39fbb7393dcca7d3a475a09128b8c7ea7a43.tar.gz
calcurse-479e39fbb7393dcca7d3a475a09128b8c7ea7a43.zip
Add OAuth2 support for calcurse-caldav
OAuth2 authentication is completely optional. It is controlled by the AuthMethod option in the config file. Other required options were appended to config.sample. Signed-off-by: Randy Ramos <rramos1295@gmail.com> Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
Diffstat (limited to 'contrib/caldav/config.sample')
-rw-r--r--contrib/caldav/config.sample16
1 files changed, 16 insertions, 0 deletions
diff --git a/contrib/caldav/config.sample b/contrib/caldav/config.sample
index 9b21b2b..76c3ce3 100644
--- a/contrib/caldav/config.sample
+++ b/contrib/caldav/config.sample
@@ -12,6 +12,9 @@ Hostname = some.hostname.com
# Path to the CalDAV calendar on the host specified above.
Path = /path/to/calendar/on/the/server/
+# Type of authentication to use. Must be "basic" or "oauth2"
+#AuthMethod = basic
+
# Enable this if you want to skip SSL certificate checks.
InsecureSSL = No
@@ -33,3 +36,16 @@ Verbose = Yes
# Optionally specify additional HTTP headers here.
#[CustomHeaders]
#User-Agent = Mac_OS_X/10.9.2 (13C64) CalendarAgent/176
+
+# Use the following to synchronize with an OAuth2-based service
+# such as Google Calendar.
+#[OAuth2]
+#ClientID = your_client_id
+#ClientSecret = your_client_secret
+
+# Scope of access for API calls. Synchronization requires read/write.
+#Scope = https://example.com/resource/scope
+
+# Change the redirect URI if you receive errors, but ensure that it is identical
+# to the redirect URI you specified in the API settings.
+#RedirectURI = http://127.0.0.1