[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/oauth2 bcf36ae 18/23: feat(oauth2): add state parameter
From: |
Stefan Monnier |
Subject: |
[elpa] externals/oauth2 bcf36ae 18/23: feat(oauth2): add state parameter support, rename resource-url to scope |
Date: |
Tue, 1 Dec 2020 16:32:01 -0500 (EST) |
branch: externals/oauth2
commit bcf36aeebbcadee421b26f3eb658f5376cadfbb1
Author: Julien Danjou <julien@danjou.info>
Commit: Julien Danjou <julien@danjou.info>
feat(oauth2): add state parameter support, rename resource-url to scope
The resource-url is actually a scope.
Add support for optional state parameter.
This is version 0.12.
Thanks Xu Chunyang <xuchunyang56@gmail.com>
---
oauth2.el | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/oauth2.el b/oauth2.el
index c8807f3..aaf74ee 100644
--- a/oauth2.el
+++ b/oauth2.el
@@ -1,9 +1,9 @@
;;; oauth2.el --- OAuth 2.0 Authorization Protocol
-;; Copyright (C) 2011-2016 Free Software Foundation, Inc
+;; Copyright (C) 2011-2020 Free Software Foundation, Inc
;; Author: Julien Danjou <julien@danjou.info>
-;; Version: 0.11
+;; Version: 0.12
;; Keywords: comm
;; This file is part of GNU Emacs.
@@ -149,7 +149,7 @@ This allows to store the token in an unique way."
(secure-hash 'md5 (concat auth-url token-url resource-url)))
;;;###autoload
-(defun oauth2-auth-and-store (auth-url token-url resource-url client-id
client-secret &optional redirect-uri)
+(defun oauth2-auth-and-store (auth-url token-url scope client-id client-secret
&optional redirect-uri state)
"Request access to a resource and store it using `plstore'."
;; We store a MD5 sum of all URL
(let* ((plstore (plstore-open oauth2-token-file))
@@ -167,7 +167,7 @@ This allows to store the token in an unique way."
:token-url token-url
:access-response (plist-get plist :access-response))
(let ((token (oauth2-auth auth-url token-url
- client-id client-secret resource-url nil
redirect-uri)))
+ client-id client-secret scope state
redirect-uri)))
;; Set the plstore
(setf (oauth2-token-plstore token) plstore)
(setf (oauth2-token-plstore-id token) id)
- [elpa] externals/oauth2 ba35131 05/23: oauth2: allow to use any HTTP request type, (continued)
- [elpa] externals/oauth2 ba35131 05/23: oauth2: allow to use any HTTP request type, Stefan Monnier, 2020/12/01
- [elpa] externals/oauth2 e94f9f1 08/23: * packages/oauth2/oauth2.el: Don't use aget, update to 0.4, Stefan Monnier, 2020/12/01
- [elpa] externals/oauth2 a51dda4 04/23: * oauth2.el: Require json., Stefan Monnier, 2020/12/01
- [elpa] externals/oauth2 6824409 09/23: * packages/oauth2/oauth2.el: Revert fix URL double escaping, update to 0.5, Stefan Monnier, 2020/12/01
- [elpa] externals/oauth2 d5e5e70 10/23: oauth2: add redirect-uri parameter, update to 0.6, Stefan Monnier, 2020/12/01
- [elpa] externals/oauth2 1d352b3 17/23: Fix some quoting problems in doc strings, Stefan Monnier, 2020/12/01
- [elpa] externals/oauth2 86a4afd 19/23: fix(oauth2): rename forgotten instance of resource-url -> scope, Stefan Monnier, 2020/12/01
- [elpa] externals/oauth2 7619d08 23/23: * .gitignore: New file, Stefan Monnier, 2020/12/01
- [elpa] externals/oauth2 61bcabe 16/23: oauth2: send authentication token via Authorization header, Stefan Monnier, 2020/12/01
- [elpa] externals/oauth2 bf96d9f 11/23: oauth2: store access-reponse, bump versino to 0.7, Stefan Monnier, 2020/12/01
- [elpa] externals/oauth2 bcf36ae 18/23: feat(oauth2): add state parameter support, rename resource-url to scope,
Stefan Monnier <=
- [elpa] externals/oauth2 0abcea1 15/23: oauth2.el: Add support for async retrieve., Stefan Monnier, 2020/12/01
- [elpa] externals/oauth2 54da2ff 21/23: * packages/oauth2/oauth2.el: Use lexical-binding, cl-lib, and nadvice, Stefan Monnier, 2020/12/01
- [elpa] externals/oauth2 b383a42 22/23: * packages/oauth2/oauth2.el: update version to 0.15, Stefan Monnier, 2020/12/01
- [elpa] externals/oauth2 8f5cf79 14/23: * oauth2.el: Only require CL at compile time and avoid flet., Stefan Monnier, 2020/12/01
- [elpa] externals/oauth2 9108df0 20/23: feat(oauth2): do not include &client_secret if no client_secret set, Stefan Monnier, 2020/12/01