[Commits] [SCM] claws branch, gtk2, updated. 3.19.0-36-g424471a2f
wwp at claws-mail.org
wwp at claws-mail.org
Tue May 24 11:51:38 UTC 2022
The branch, gtk2 has been updated
via 424471a2f1e403cd7d8d6140456639eb107e9f26 (commit)
from e6bf6664fd7fe0e69c22c5bd41305319b4cc4e63 (commit)
Summary of changes:
src/oauth2.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
- Log -----------------------------------------------------------------
commit 424471a2f1e403cd7d8d6140456639eb107e9f26
Author: Michael Rasmussen <mir at datanom.net>
Date: Tue May 24 13:46:18 2022 +0200
Fix MS Outlook OAuth2
Signed-off-by: Michael Rasmussen <mir at datanom.net>
diff --git a/src/oauth2.c b/src/oauth2.c
index 293e88c1d..66b81f889 100644
--- a/src/oauth2.c
+++ b/src/oauth2.c
@@ -69,13 +69,13 @@ static gchar *OAUTH2info[4][17]={
"/common/oauth2/v2.0/token",
"/common/oauth2/v2.0/token",
"code",
- "wl.imap offline_access",
+ "offline_access https://outlook.office.com/IMAP.AccessAsUser.All https://outlook.office.com/POP.AccessAsUser.All https://outlook.office.com/SMTP.Send",
"authorization_code",
"refresh_token",
"common",
"",
"offline",
- "wl.imap offline_access",
+ "offline_access https://outlook.office.com/IMAP.AccessAsUser.All https://outlook.office.com/POP.AccessAsUser.All https://outlook.office.com/SMTP.Send",
"query",
""},
{"login.microsoftonline.com",
@@ -117,7 +117,7 @@ static gchar *OAUTH2info[4][17]={
static gchar *OAUTH2CodeMarker[5][2] = {
{"",""},
{"code=","&scope="},
- {"code=","&session_state="},
+ {"code="," HTTP"},
{"code=","&session_state="},
{"yahoo_begin_mark","yahoo_end_mark"} /* Not used since token avalable to user to copy in browser window */
};
@@ -322,6 +322,7 @@ int oauth2_obtain_tokens (Oauth2Service provider, OAUTH2Data *OAUTH2Data, const
header = g_strconcat ("", NULL);
}
+ debug_print("Complete body: %s\n", body);
oauth2_post_request (request, OAUTH2info[i][OA2_BASE_URL], OAUTH2info[i][OA2_ACCESS_RESOURCE], header, body);
ret = oauth2_contact_server (sock, request, response);
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list