From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Julien Danjou Newsgroups: gmane.emacs.devel Subject: Re: OAuth2 implementation in Elisp Date: Sun, 25 Sep 2011 14:56:20 +0200 Message-ID: <87mxdsbx1n.fsf@keller.adm.naquadah.org> References: <87sjnojl7j.fsf@keller.adm.naquadah.org> <4E7BAFA4.8090800@dogan.se> <4E7BAFE2.2090102@dogan.se> <87k490jkaw.fsf@keller.adm.naquadah.org> <87d3eo984j.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: dough.gmane.org 1316955396 6445 80.91.229.12 (25 Sep 2011 12:56:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 25 Sep 2011 12:56:36 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Sep 25 14:56:32 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R7oFx-0000kV-AA for ged-emacs-devel@m.gmane.org; Sun, 25 Sep 2011 14:56:29 +0200 Original-Received: from localhost ([::1]:39240 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R7oFw-000415-Tr for ged-emacs-devel@m.gmane.org; Sun, 25 Sep 2011 08:56:28 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:55567) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R7oFv-000410-3B for emacs-devel@gnu.org; Sun, 25 Sep 2011 08:56:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R7oFu-00085L-1J for emacs-devel@gnu.org; Sun, 25 Sep 2011 08:56:27 -0400 Original-Received: from prometheus.naquadah.org ([212.85.154.174]:43920 helo=mx1.naquadah.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R7oFt-00085B-Sv for emacs-devel@gnu.org; Sun, 25 Sep 2011 08:56:26 -0400 Original-Received: from keller.adm.naquadah.org (AMontsouris-651-1-106-83.w83-202.abo.wanadoo.fr [83.202.161.83]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mx1.naquadah.org (Postfix) with ESMTPSA id 9FBF45C0FC for ; Sun, 25 Sep 2011 14:56:21 +0200 (CEST) Mail-Followup-To: emacs-devel@gnu.org In-Reply-To: <87d3eo984j.fsf@lifelogs.com> (Ted Zlatanov's message of "Sun, 25 Sep 2011 06:25:16 -0500") User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 212.85.154.174 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:144275 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Sun, Sep 25 2011, Ted Zlatanov wrote: > Could you format it to wrap the long lines? Long? What's the limit? The longest is 122, which does not seem long to me in 2011. > Some usage examples would be nice. Sure, I'll may be add, but the commentary should be enough for anybody to start using it. :) > I don't think you are encoding URL parameters so your URLs are not > safely constructed. I think the url libraries have functions for that; > you could also submit a POST (if OAuth2 supports it, I don't know the > spec) so you don't have to encode things at all. It is a POST request for the authorization request. And about encoding, I'm not sure there's actually a problem, but if you could point me on a specific point I'd be glad to take a look. > Can `oauth2-request-authorization' be automated so the user doesn't have > to enter a string they see on the screen? That seems painful. If Emacs was a Web app, yes. =2D-=20 Julien Danjou --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQIcBAEBAgAGBQJOfyT0AAoJEGEbqVCLeKXCeYAP/RB0y+alJq8rqqWz75xSbtnL +QFhbq0XyuGzKf0HxVIDQZ7WaCkpaTpuYguc5UDpgXZd1+QGTTf/ZXg1dhgGdT+j EvpX8Jg/FjG5jXHv3WzrRjOMBDe6KTyEluXQI9T4AyObYB/emjp+aoFwwqh19kIE /uCAWGYOxrtwLho9yHVewtujhYBO8mBywHu3qKfceGOnF5zKHIsdQUrRdd7s+eE6 3J0xrxwihR9jPvc9OW9uLckxEGs/CB7sroHwz2kTlf4jLZUYSGHkR9tSc8S+sv6i Or+d4/aMbwKc9j4e88Cx0K673XMyzwnWxOX1Ps+J67NwJbzjZqcRUIUhH2RYvMR8 q7XfGh8gc5IjKtAx9880XPqfwI3e8HXdoncB3OaFY0SSPq8tyul4ks+IlkVf1Hw/ C03/EgwehKmCNf/vgbaJTa1E+lwHjv3vCnGNWCbj9IfFVxw5CWvEuf05+TMVZoUf W9SuHEc0jgiOrO+TRDZEeHz9Wjg7Yb50eWoOjwDWA2iZ6Kyig1yfMEGFcyTzpcgR RLomHx0GDCrvcOvyYrbBMKVqeIhx6vDI+xxrzPZI30kkglYaVmy1MaEX5QWCOH4N N/1JxdptumFQnbBzgTJiKZgLDx6N7ZJo4u3JCtiEfLZQPeoJFhzMtKdj5m4j/Vf4 3fmXcXHyC9IozHcvdn// =RVXk -----END PGP SIGNATURE----- --=-=-=--