From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Engster Subject: Re: org-caldav: Sync Org with external calendars through CalDAV (Owncloud, Google, ...) Date: Tue, 04 Dec 2012 20:27:22 +0100 Message-ID: <87y5hdr52d.fsf@engster.org> References: <87r4senoly.fsf@engster.org> <87obmswfpm.fsf@altern.org> <87fw84b0pn.fsf@engster.org> <87obmrawpt.fsf@gnu.org> <873941i3lc.fsf@engster.org> <87pq2qsyno.fsf@engster.org> <20121204102904.GA4294@kuru.dyndns-at-home.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:59930) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tfy9P-00062j-MN for emacs-orgmode@gnu.org; Tue, 04 Dec 2012 14:27:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tfy9O-0004gD-AE for emacs-orgmode@gnu.org; Tue, 04 Dec 2012 14:27:27 -0500 Received: from randomsample.de ([83.169.19.17]:33237) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tfy9N-0004fo-SZ for emacs-orgmode@gnu.org; Tue, 04 Dec 2012 14:27:26 -0500 In-Reply-To: <20121204102904.GA4294@kuru.dyndns-at-home.com> (Suvayu Ali's message of "Tue, 4 Dec 2012 11:29:04 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Suvayu Ali Cc: emacs-orgmode@gnu.org, Stephen Eglen Suvayu Ali writes: > On Mon, Dec 03, 2012 at 08:50:35PM +0100, David Engster wrote: >> I'm at a loss why this happens, and I could not reproduce it with my >> account. This problem really has nothing to do with org-caldav, since it >> is delegating this part to the url package. As I've already written to >> Bastien, please try >> >> (url-retrieve-synchronously >> "https://www.google.com/calendar/dav/YOUR-CALENDAR-ID@group.calendar.google.com/events/") >> >> If this doesn't ask for your username, then there's your >> problem. Depending on the Emacs version you're using, you might want to >> set >> >> (setq auth-source-debug t) >> >> to see whether some .netrc file or similar is setting the username for >> you (look into the *Messages* buffer). >> > > I see the same issue, I get only a password prompt. This is what I get > on trying your suggestion above. > > Contacting host: www.google.com:443 > auth-source-search: found 1 results (max 1) matching (:max 1 :host > "www.google.com:443" :port "https") > auth-source-search: found 1 CACHED results matching (:max 1 :host > "www.google.com:443" :port "https") > # > > I'm not sure from this if my netrc is being used. Yes. The mesage "found 1 results" means it found an entry in your .netrc or .authinfo which matches. > My netrc also has the password for my Google account, if it is being > used should I even get a password prompt? The auth-source stuff can be a bit tricky. For https connections with the URL package, you need to use the following machine www.google.com:443 port https login USERNAME password PASS That's no typo: You have to use ":443" as well as "port https". See also (info "(auth)Help for users") -David