From 479e39fbb7393dcca7d3a475a09128b8c7ea7a43 Mon Sep 17 00:00:00 2001 From: Randy Ramos Date: Mon, 4 Sep 2017 19:20:16 -0400 Subject: 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 Signed-off-by: Lukas Fleischer --- contrib/caldav/config.sample | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'contrib/caldav/config.sample') 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 -- cgit v1.2.3-54-g00ecf