branch: externals/oauth2
commit da0a38520726807499c98ba5744e8c4f77a46a1d
Author: Xiyue Deng <manp...@gmail.com>
Commit: Sean Whitton <spwhit...@spwhitton.name>

    Fix missing parameter
    
    * packages/oauth2/oauth2.el (oauth2-auth): Add missing scope
    parameter.
    * packages/oauth2/oauth2.el (oauth2-auth-and-store): Pass scope to
    oauth2-auth.
---
 oauth2.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/oauth2.el b/oauth2.el
index 8c36d10eea..ac10fb0e67 100644
--- a/oauth2.el
+++ b/oauth2.el
@@ -247,7 +247,7 @@ TOKEN should be obtained with `oauth2-request-access'."
 
 ;;;###autoload
 (defun oauth2-auth (auth-url token-url client-id client-secret
-                             &optional state redirect-uri)
+                             &optional scope state redirect-uri)
   "Authenticate application via OAuth2."
   (oauth2-request-access
    auth-url
@@ -293,7 +293,7 @@ Returns an `oauth2-token'."
                             :token-url token-url
                             :access-response (plist-get plist 
:access-response))
        (let ((token (oauth2-auth auth-url token-url
-                                 client-id client-secret state
+                                 client-id client-secret scope state
                                  redirect-uri)))
          ;; Set the plstore
          (setf (oauth2-token-plstore-id token) plstore-id)

Reply via email to