[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: OAuth2 implementation in Elisp
From: |
Julien Danjou |
Subject: |
Re: OAuth2 implementation in Elisp |
Date: |
Mon, 26 Sep 2011 11:52:54 +0200 |
User-agent: |
Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) |
On Sun, Sep 25 2011, Ted Zlatanov wrote:
> If you could stay under 78 it would be polite. I can't find the
> reference but I'm pretty sure for Emacs submissions at least it's
> required.
Fine.
> #+begin_src lisp
> (browse-url (concat auth-url
> (if (string-match-p "\?" auth-url) "&" "?")
> "client_id=" client-id
>
> "&response_type=code&redirect_uri=urn:ietf:wg:oauth:2.0:oob"
> (if scope (concat "&scope=" (url-hexify-string scope))
> "")
> (if state (concat "&state=" state) "")))
>
> #+end_src
>
> This is not a POST and `client_id' for instance could have invalid
> characters for a URL.
Good catch indeed. I'll do a re-check of such things then and will fix
them before they break. :-)
> That makes no sense. You are asking the user to enter information Emacs
> is displaying. Can you grab that information for them, so they don't
> have to enter it?
No, this would kill the whole point of OAuth. You may want to take a
look at the spec of the protocol to understand how it works. :)
--
Julien Danjou
pgpyh5ImqCaMH.pgp
Description: PGP signature
- OAuth2 implementation in Elisp, Julien Danjou, 2011/09/22
- Re: OAuth2 implementation in Elisp, Deniz Dogan, 2011/09/22
- Re: OAuth2 implementation in Elisp, Deniz Dogan, 2011/09/22
- Re: OAuth2 implementation in Elisp, Julien Danjou, 2011/09/22
- Re: OAuth2 implementation in Elisp, Ted Zlatanov, 2011/09/25
- Re: OAuth2 implementation in Elisp, Julien Danjou, 2011/09/25
- Re: OAuth2 implementation in Elisp, Ted Zlatanov, 2011/09/25
- Re: OAuth2 implementation in Elisp, Karl Fogel, 2011/09/25
- Re: OAuth2 implementation in Elisp, Justin Lilly, 2011/09/25
- Re: OAuth2 implementation in Elisp,
Julien Danjou <=
- Re: OAuth2 implementation in Elisp, Ted Zlatanov, 2011/09/26
- Re: OAuth2 implementation in Elisp, Julien Danjou, 2011/09/26
- Re: OAuth2 implementation in Elisp, Lars Magne Ingebrigtsen, 2011/09/26
- Re: OAuth2 implementation in Elisp, Julien Danjou, 2011/09/26
- Re: OAuth2 implementation in Elisp, Lars Magne Ingebrigtsen, 2011/09/26
- Re: OAuth2 implementation in Elisp, Julien Danjou, 2011/09/27
- Re: OAuth2 implementation in Elisp, Richard Stallman, 2011/09/27
- Re: OAuth2 implementation in Elisp, joakim, 2011/09/26
- Re: OAuth2 implementation in Elisp, Ted Zlatanov, 2011/09/26
- Re: OAuth2 implementation in Elisp, Tassilo Horn, 2011/09/26