[asterisk-users] Calendar integration : Could not authenticate to server: rejected Basic challenge
Dan Heywood
dan.heywood at dreambox.ae
Tue Oct 27 07:19:52 CDT 2015
Hi Jonas,
Is it google apps? Try checking the following in your google account settings:
Allow less secure apps: ON
Some non-Google apps and devices use less secure sign-in technology, which could leave your account vulnerable. You can turn off access for these apps (which we recommend) or choose to use them despite the risks.
I had to enable this to allow login from a linux based application in order to send out email.
Thanks,
Dan
From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Jonas Kellens
Sent: Tuesday, October 27, 2015 1:33 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Calendar integration : Could not authenticate to server: rejected Basic challenge
Hello
I have changed type 'caldav' to 'ical', but still no succes :
[Oct 27 10:30:38] WARNING[23388]: res_calendar_icalendar.c:117 auth_credentials: Invalid username or password for iCalendar 'cal1'
[Oct 27 10:30:38] WARNING[23388]: res_calendar_icalendar.c:150 fetch_icalendar: Unable to retrieve iCalendar 'cal1' from 'https://www.google.com/calendar/dav/info@mydomain.tld/events/': Could not authenticate to server: rejected Basic challenge
siptest*CLI> calendar show calendars
Calendar Type Status
-------- ---- ------
cal1 ical free
Am I missing something obvious here ?
Kind regards
Jonas
On 26-10-15 17:02, Marek Červenka wrote:
try ical url
caldav switched to Oauth
https://blog.mozilla.org/calendar/2013/09/google-is-changing-the-location-url-of-their-caldav-calendars/
and this looks like you must use Oauth 2.0
https://developers.google.com/google-apps/calendar/caldav/v2/guide
Dne 26.10.2015 v 12:17 Jonas Kellens napsal(a):
Hello
I find very little feedback on the following warning/error when trying to connect to Google calendar :
[Oct 26 12:11:14] WARNING[24926]: res_calendar_caldav.c:118 auth_credentials: Invalid username or password for CalDAV calendar 'cal1'
[Oct 26 12:11:14] WARNING[24926]: res_calendar_caldav.c:157 caldav_request: Unknown response to CalDAV calendar cal1, request REPORT to /calendar/dav/info at mydomain.tld/events/: Could not authenticate to server: rejected Basic challenge
[cal1]
type = caldav
url = https://www.google.com/calendar/dav/info@mydomain.tld/events/
user = info at mydomain.tld
secret = mysecret
refresh = 15
timeframe = 60
When I go to the URL https://www.google.com/calendar/dav/info@mydomain.tld/events/ I can log in with the credentials to the calendar (and get a download window for the calendar file).
So it seems not a problem of authentication to me.
But what then could be the real issue here ?
Thanks
Kind regards
Jonas.
--
---------------------------------------
Marek Cervenka
=======================================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20151027/4cd5a3c1/attachment.html>
More information about the asterisk-users
mailing list