all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ted Zlatanov <tzz@lifelogs.com>
To: emacs-devel@gnu.org
Subject: Re: OAuth2 implementation in Elisp
Date: Mon, 26 Sep 2011 16:26:46 -0500	[thread overview]
Message-ID: <87ty7zvvu1.fsf@lifelogs.com> (raw)
In-Reply-To: 87ehz3hws9.fsf@thinkpad.tsdh.de

On Mon, 26 Sep 2011 22:29:58 +0200 Tassilo Horn <tassilo@member.fsf.org> wrote: 

TH> Lars Magne Ingebrigtsen <larsi@gnus.org> writes:
>>> But I understand Julien so that this is really arbitrary: some
>>> JavaScript that has to be interpreted, an image, a video (with 30
>>> seconds beer ad before), or even some flash stuff.
>> 
>> If it's JS or Flash, then Emacs can't do it.  (Yet.  :-)
>> But is that common?

TH> Not sure.  I've just test-driven Julien's google-contacts.el which uses
TH> oauth2.el, and the google page showing the auth code constists of first
TH> a large part of JavaScript and CSS stuff and then plain but complex HTML
TH> where the auth code is inside a <textarea>...</textarea>.

TH> Possibly, one could rip out the code of the page with some heuristics,
TH> but that doesn't look very promising in the general case...

Experimenting with the Google OAuth2 API (they have docs and examples at
http://code.google.com/apis/accounts/docs/OAuth2.html), I think it may
be possible to extract the bootstrap auth code from the HTML <title>
tag.  The title is filled in before any Javascript is run--it comes back
in the HTTP response.  I don't know if that will work in the general
case, as you say, but at least for that one big provider it would be
possible to parse that part of the interaction.

Ted




  parent reply	other threads:[~2011-09-26 21:26 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-22 21:55 OAuth2 implementation in Elisp Julien Danjou
2011-09-22 21:59 ` Deniz Dogan
2011-09-22 22:00   ` Deniz Dogan
2011-09-22 22:15     ` Julien Danjou
2011-09-25 11:25       ` Ted Zlatanov
2011-09-25 12:56         ` Julien Danjou
2011-09-25 13:31           ` Ted Zlatanov
2011-09-25 17:14             ` Karl Fogel
2011-09-25 20:50             ` Justin Lilly
2011-09-26  9:52             ` Julien Danjou
2011-09-26 14:36               ` Ted Zlatanov
2011-09-26 15:04                 ` Julien Danjou
2011-09-26 15:15                   ` Lars Magne Ingebrigtsen
2011-09-26 15:17                     ` Julien Danjou
2011-09-26 16:24                       ` Lars Magne Ingebrigtsen
2011-09-27  9:40                         ` Julien Danjou
2011-09-27 23:25                           ` Richard Stallman
2011-09-26 17:47                       ` joakim
2011-09-26 19:09                         ` Ted Zlatanov
2011-09-26 19:55                           ` Tassilo Horn
2011-09-26 19:59                             ` Lars Magne Ingebrigtsen
2011-09-26 20:29                               ` Tassilo Horn
2011-09-26 20:31                                 ` Lars Magne Ingebrigtsen
2011-09-26 21:26                                 ` Ted Zlatanov [this message]
2011-09-27  9:43                                 ` Julien Danjou
2011-09-27  9:50                                   ` joakim
2011-09-27 10:14                                     ` Ted Zlatanov
2011-09-27 12:22                                       ` joakim
2011-09-27 20:17                                         ` Ted Zlatanov
2011-09-26 17:00                   ` Ted Zlatanov
2011-09-28  3:35                     ` Vijay Lakshminarayanan
2011-09-26 21:23                   ` Ted Zlatanov
2011-09-27 10:18                     ` Ted Zlatanov
2011-09-27 11:42                       ` Julien Danjou
2011-09-27 20:20                         ` Ted Zlatanov
2011-09-25 20:02           ` Deniz Dogan
2011-09-23  4:34 ` Stefan Monnier
2011-09-23  7:31   ` Julien Danjou
2011-09-23  8:23     ` Andreas Röhler
2011-09-23  8:48     ` Michael Albinus
2011-09-23  9:02       ` Julien Danjou
2011-09-23  9:32         ` Michael Albinus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ty7zvvu1.fsf@lifelogs.com \
    --to=tzz@lifelogs.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.