emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/oauth2 86a4afd 19/23: fix(oauth2): rename forgotten ins


From: Stefan Monnier
Subject: [elpa] externals/oauth2 86a4afd 19/23: fix(oauth2): rename forgotten instance of resource-url -> scope
Date: Tue, 1 Dec 2020 16:32:01 -0500 (EST)

branch: externals/oauth2
commit 86a4afd59216af5716de915d19bd75dcc85bb500
Author: Julien Danjou <julien@danjou.info>
Commit: Julien Danjou <julien@danjou.info>

    fix(oauth2): rename forgotten instance of resource-url -> scope
    
    This is version 0.13
    
    Thanks Rainer Gemulla <rgemulla@uni-mannheim.de>
---
 oauth2.el | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/oauth2.el b/oauth2.el
index aaf74ee..570b04e 100644
--- a/oauth2.el
+++ b/oauth2.el
@@ -3,7 +3,7 @@
 ;; Copyright (C) 2011-2020 Free Software Foundation, Inc
 
 ;; Author: Julien Danjou <julien@danjou.info>
-;; 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]