Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] Calendar integration : Could not authenticate to server: rejected Basic challenge


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
jonas.kellens at telen...
Guest





PostPosted: Mon Oct 26, 2015 6:18 am    Post subject: [asterisk-users] Calendar integration : Could not authentica Reply with quote

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@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@mydomain.tld (info@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.
Back to top
cervajs at fpf.slu.cz
Guest





PostPosted: Mon Oct 26, 2015 11:03 am    Post subject: [asterisk-users] Calendar integration : Could not authentica Reply with quote

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):

Quote:
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@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@mydomain.tld (info@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
=======================================
Back to top
jonas.kellens at telen...
Guest





PostPosted: Tue Oct 27, 2015 4:33 am    Post subject: [asterisk-users] Calendar integration : Could not authentica Reply with quote

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:

Quote:
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):

Quote:
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@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@mydomain.tld (info@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
=======================================


Back to top
dan.heywood at dreambo...
Guest





PostPosted: Tue Oct 27, 2015 7:20 am    Post subject: [asterisk-users] Calendar integration : Could not authentica Reply with quote

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@lists.digium.com [mailto:asterisk-users-bounces@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:
Quote:

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):
Quote:

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@mydomain.tld/events/ ([email]/calendar/dav/info@mydomain.tld/events/[/email]): Could not authenticate to server: rejected Basic challenge


[cal1]
type = caldav
url = https://www.google.com/calendar/dav/info@mydomain.tld/events/
user = info@mydomain.tld (info@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.






Quote:
-- ---------------------------------------Marek Cervenka=======================================



Back to top
jonas.kellens at telen...
Guest





PostPosted: Tue Oct 27, 2015 7:56 am    Post subject: [asterisk-users] Calendar integration : Could not authentica Reply with quote

Hello


I have changed this setting at Google but it brings me no success.


I add that I have the same problem with another calendar (Horde) :


[Oct 27 12:08:32] WARNING[24844]: res_calendar_caldav.c:118 auth_credentials: Invalid username or password for CalDAV calendar 'cal2'
[Oct 27 12:08:32] WARNING[24844]: res_calendar_caldav.c:157 caldav_request: Unknown response to CalDAV calendar cal2, request REPORT to /rpc.php/kronolith/jonas@mydomain.tld/jonas@mydomain.tld.ics: Could not authenticate to server: rejected Basic challenge



When using "caldav" or "ical" with Google Calendar, I now get this notice :

[Oct 27 13:43:51] WARNING[25202]: res_calendar_caldav.c:157 caldav_request: Unknown response to CalDAV calendar cal0, request REPORT to /calendar/ical/info%40domain.tld/private-6e3543acbc7e2ad02b3d414124a/basic.ics: SSL handshake failed: SSL error: GnuTLS internal error.

I have also taken the URL as presented by Google in the Calendar settings.

But as u see... it does not work !




So it does not seem to be a problem with Google Calendar, as the same problem occurs with Horde Calendar.



Anyone has a working example please ??




Kind regards

Jonas.




On 27-10-15 13:19, Dan Heywood wrote:

Quote:
<![endif]--> <![endif]-->
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@lists.digium.com (asterisk-users-bounces@lists.digium.com) [mailto:asterisk-users-bounces@lists.digium.com (asterisk-users-bounces@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:
Quote:

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):
Quote:

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@mydomain.tld/events/ ([email]/calendar/dav/info@mydomain.tld/events/[/email]): Could not authenticate to server: rejected Basic challenge


[cal1]
type = caldav
url = https://www.google.com/calendar/dav/info@mydomain.tld/events/
user = info@mydomain.tld (info@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.






Quote:
-- ---------------------------------------Marek Cervenka=======================================




 


Back to top
jonas.kellens at telen...
Guest





PostPosted: Tue Oct 27, 2015 8:52 am    Post subject: [asterisk-users] Calendar integration : Could not authentica Reply with quote

Mark

thank you for your input.

I am using Asterisk 1.8.32.3 (latest).


I indeed use the "Private iCal url" as presented by Google in Calendar settings.


This is my calendar.conf :

[cal0]
type = caldav
url = https://calendar.google.com/calendar/ical/info%40domain.tld/private-6e3543acbc76853414124a/basic.ics
user = info@domain.tld (info@domain.tld)
secret = mysecretpasswd
refresh = 15
timeframe = 60

[cal1]
type = ical
url = https://calendar.google.com/calendar/ical/info%40domain.tld/private-6e3543acbc76853414124a/basic.ics
user = info@domain.tld (info@domain.tld)
secret = mysecretpasswd
refresh = 15
timeframe = 60

[cal2]
type = caldav
url = https://www.google.com/calendar/dav/info@domain.tld/events/  ; Main GMail calendar (the trailing slash is significant!)
user = info@domain.tld (info@domain.tld)
secret = mysecretpasswd
refresh = 15
timeframe = 60

[cal3]
type = ical
url = https://www.google.com/calendar/dav/info@domain.tld/events/  ; Main GMail calendar (the trailing slash is significant!)
user = info@domain.tld (info@domain.tld)
secret = mysecretpasswd
refresh = 15
timeframe = 60



You see that I try every combination possible.



[Oct 27 14:28:28] WARNING[26748]: res_calendar_caldav.c:118 auth_credentials: Invalid username or password for CalDAV calendar 'cal2'
[Oct 27 14:28:28] WARNING[26748]: res_calendar_caldav.c:157 caldav_request: Unknown response to CalDAV calendar cal2, request REPORT to /calendar/dav/info@domain.tld/events/: Could not authenticate to server: rejected Basic challenge
[Oct 27 14:28:28] WARNING[26746]: res_calendar_icalendar.c:117 auth_credentials: Invalid username or password for iCalendar 'cal3'
[Oct 27 14:28:28] WARNING[26746]: res_calendar_icalendar.c:150 fetch_icalendar: Unable to retrieve iCalendar 'cal3' from 'https://www.google.com/calendar/dav/info@domain.tld/events/': Could not authenticate to server: rejected Basic challenge
[Oct 27 14:28:28] WARNING[26746]: res_calendar_icalendar.c:477 ical_load_calendar: Unable to parse iCalendar 'cal3'



Calendar             Type       Status
--------             ----       ------
770000cal3           ical       free 
770000cal2           caldav     free 
770000cal1           ical       busy 
770000cal0           caldav     free



It seems I finally have a working example !! Namely :


[cal1]
type = ical
url = https://calendar.google.com/calendar/ical/info%40domain.tld/private-6e3543acbc76853414124a/basic.ics
user = info@domain.tld (info@domain.tld)
secret = mysecretpasswd
refresh = 15
timeframe = 60


So the "Private iCal url" of Google Calendar is the one to go !



Jonas.







On 27-10-15 14:04, Mark Wiater wrote:

Quote:
On 10/27/2015 8:56 AM, Jonas Kellens wrote:
Quote:

I have changed this setting at Google but it brings me no success.

Jonas,

I've been using google calendar and Asterisk 1.8 for a couple of years now without issue.

I have a note in my configuration that says that I'm using the Private ICAL URL from gmail and that it's the only one that worked for me. Is that the URL that you're using?

Did you change your type to ical in calendar.conf?

Mark


Back to top
jonas.kellens at telen...
Guest





PostPosted: Wed Oct 28, 2015 9:21 am    Post subject: [asterisk-users] Calendar integration : Could not authentica Reply with quote

Hello


so I got this working with Google Calendar and meanwhile also with MS Exchange.


Does anyone have a working example with Horde Calendar (kronolith)? This one seems very tough !





Kind regards

Jonas.



On 27-10-15 14:52, Jonas Kellens wrote:

Quote:
Mark

thank you for your input.

I am using Asterisk 1.8.32.3 (latest).


I indeed use the "Private iCal url" as presented by Google in Calendar settings.


This is my calendar.conf :

[cal0]
type = caldav
url = https://calendar.google.com/calendar/ical/info%40domain.tld/private-6e3543acbc76853414124a/basic.ics
user = info@domain.tld (info@domain.tld)
secret = mysecretpasswd
refresh = 15
timeframe = 60

[cal1]
type = ical
url = https://calendar.google.com/calendar/ical/info%40domain.tld/private-6e3543acbc76853414124a/basic.ics
user = info@domain.tld (info@domain.tld)
secret = mysecretpasswd
refresh = 15
timeframe = 60

[cal2]
type = caldav
url = https://www.google.com/calendar/dav/info@domain.tld/events/  ; Main GMail calendar (the trailing slash is significant!)
user = info@domain.tld (info@domain.tld)
secret = mysecretpasswd
refresh = 15
timeframe = 60

[cal3]
type = ical
url = https://www.google.com/calendar/dav/info@domain.tld/events/  ; Main GMail calendar (the trailing slash is significant!)
user = info@domain.tld (info@domain.tld)
secret = mysecretpasswd
refresh = 15
timeframe = 60



You see that I try every combination possible.



[Oct 27 14:28:28] WARNING[26748]: res_calendar_caldav.c:118 auth_credentials: Invalid username or password for CalDAV calendar 'cal2'
[Oct 27 14:28:28] WARNING[26748]: res_calendar_caldav.c:157 caldav_request: Unknown response to CalDAV calendar cal2, request REPORT to /calendar/dav/info@domain.tld/events/: Could not authenticate to server: rejected Basic challenge
[Oct 27 14:28:28] WARNING[26746]: res_calendar_icalendar.c:117 auth_credentials: Invalid username or password for iCalendar 'cal3'
[Oct 27 14:28:28] WARNING[26746]: res_calendar_icalendar.c:150 fetch_icalendar: Unable to retrieve iCalendar 'cal3' from 'https://www.google.com/calendar/dav/info@domain.tld/events/': Could not authenticate to server: rejected Basic challenge
[Oct 27 14:28:28] WARNING[26746]: res_calendar_icalendar.c:477 ical_load_calendar: Unable to parse iCalendar 'cal3'



Calendar             Type       Status
--------             ----       ------
770000cal3           ical       free 
770000cal2           caldav     free 
770000cal1           ical       busy 
770000cal0           caldav     free



It seems I finally have a working example !! Namely :


[cal1]
type = ical
url = https://calendar.google.com/calendar/ical/info%40domain.tld/private-6e3543acbc76853414124a/basic.ics
user = info@domain.tld (info@domain.tld)
secret = mysecretpasswd
refresh = 15
timeframe = 60


So the "Private iCal url" of Google Calendar is the one to go !



Jonas.







On 27-10-15 14:04, Mark Wiater wrote:

Quote:
On 10/27/2015 8:56 AM, Jonas Kellens wrote:
Quote:

I have changed this setting at Google but it brings me no success.

Jonas,

I've been using google calendar and Asterisk 1.8 for a couple of years now without issue.

I have a note in my configuration that says that I'm using the Private ICAL URL from gmail and that it's the only one that worked for me. Is that the URL that you're using?

Did you change your type to ical in calendar.conf?

Mark





Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services