branch: externals/auth-source-xoauth2-plugin
commit 5d4a9be20667d2071f50c0568135c21704292513
Author: Xiyue Deng <[email protected]>
Commit: Xiyue Deng <[email protected]>

    Update redirect-url to use HTTPS
    
    - This is required by Microsoft, or it will report an error that
    redirect-url is not authorized.
    
    - Currently Gmail doesn't seem to care.
---
 auth-source-xoauth2-plugin.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/auth-source-xoauth2-plugin.el b/auth-source-xoauth2-plugin.el
index a254e756da..efb5f51d8a 100644
--- a/auth-source-xoauth2-plugin.el
+++ b/auth-source-xoauth2-plugin.el
@@ -49,7 +49,7 @@
        :client-secret "kSmqreRr0qwBWJgbf5Y-PjSU"
        :auth-url "https://accounts.google.com/o/oauth2/auth";
        :token-url "https://www.googleapis.com/oauth2/v3/token";
-       :redirect-uri "http://localhost/";
+       :redirect-uri "https://localhost/";
        :scope "https://mail.google.com/";
        :use-pkce "true" )
      microsoft
@@ -57,7 +57,7 @@
        ;; :client-secret ""
        :auth-url 
"https://login.microsoftonline.com/common/oauth2/v2.0/authorize";
        :token-url "https://login.microsoftonline.com/common/oauth2/v2.0/token";
-       :redirect-uri "http://localhost";
+       :redirect-uri "https://localhost";
        :scope "https://outlook.office.com/IMAP.AccessAsUser.All 
https://outlook.office.com/POP.AccessAsUser.All 
https://outlook.office.com/SMTP.Send offline_access"
        :use-pkce "true" ))))
 

Reply via email to