[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 8b24a2c: fix(oauth2): rename forgotten instance of resourc
From: |
Julien Danjou |
Subject: |
[elpa] master 8b24a2c: fix(oauth2): rename forgotten instance of resource-url -> scope |
Date: |
Fri, 3 Apr 2020 22:01:17 -0400 (EDT) |
branch: master
commit 8b24a2cd46a3b363b18b9546d6c7c633e395257f
Author: Julien Danjou <address@hidden>
Commit: Julien Danjou <address@hidden>
fix(oauth2): rename forgotten instance of resource-url -> scope
This is version 0.13
Thanks Rainer Gemulla <address@hidden>
---
packages/oauth2/oauth2.el | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/packages/oauth2/oauth2.el b/packages/oauth2/oauth2.el
index aaf74ee..570b04e 100644
--- a/packages/oauth2/oauth2.el
+++ b/packages/oauth2/oauth2.el
@@ -3,7 +3,7 @@
;; Copyright (C) 2011-2020 Free Software Foundation, Inc
;; Author: Julien Danjou <address@hidden>
-;; Version: 0.12
+;; Version: 0.13
;; Keywords: comm
;; This file is part of GNU Emacs.
@@ -143,17 +143,17 @@ TOKEN should be obtained with `oauth2-request-access'."
:group 'oauth2
:type 'file)
-(defun oauth2-compute-id (auth-url token-url resource-url)
+(defun oauth2-compute-id (auth-url token-url scope)
"Compute an unique id based on URLs.
This allows to store the token in an unique way."
- (secure-hash 'md5 (concat auth-url token-url resource-url)))
+ (secure-hash 'md5 (concat auth-url token-url scope)))
;;;###autoload
(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))
- (id (oauth2-compute-id auth-url token-url resource-url))
+ (id (oauth2-compute-id auth-url token-url scope))
(plist (cdr (plstore-get plstore id))))
;; Check if we found something matching this access
(if plist
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] master 8b24a2c: fix(oauth2): rename forgotten instance of resource-url -> scope,
Julien Danjou <=