diff options
-rw-r--r-- | alpine/xoauth2info.c | 14 | ||||
-rw-r--r-- | pith/pine.hlp | 6 |
2 files changed, 10 insertions, 10 deletions
diff --git a/alpine/xoauth2info.c b/alpine/xoauth2info.c index 79d43e6e..c6cfa4e1 100644 --- a/alpine/xoauth2info.c +++ b/alpine/xoauth2info.c @@ -78,7 +78,7 @@ OAUTH2_S alpine_oauth2_list[] = { {"response_type", "code"}, /* not used */ {"state", NULL}, /* not used */ {"device_code", NULL}, /* only used for frst time set up */ - {"response_mode", "query"}, /* Extra parameter for this server */ + {NULL, NULL}, /* Extra parameter for this server */ {NULL, NULL}, /* Extra parameter for this server */ {NULL, NULL}, /* Extra parameter for this server */ {NULL, NULL} /* Extra parameter for this server */ @@ -115,16 +115,16 @@ OAUTH2_S alpine_oauth2_list[] = { {"response_type", "code"}, {"state", NULL}, /* not used */ {"device_code", NULL}, /* not used */ - {"response_mode", "query"}, /* Extra parameter for this server */ - {NULL, NULL}, /* Extra parameter for this server */ - {NULL, NULL}, /* Extra parameter for this server */ - {NULL, NULL} /* Extra parameter for this server */ + {"code_verifier", NULL}, /* OA2_Extra1: code_verifier, generated by c-client */ + {"code_challenge", NULL}, /* OA2_Extra2: code_challenge, genrated by c-client */ + {"code_challenge_method", "S256"}, /* OA2_Extra3: code_challenge_method, given by Alpine */ + {"login_hint", NULL} /* OA2_Extra4: username, provided by Alpine, filled up by c-client */ }, {{"GET", (unsigned char *) "https://login.microsoftonline.com/\001/oauth2/v2.0/authorize", /* Get Access Code */ - {OA2_Id, OA2_Scope, OA2_Redirect, OA2_Response, OA2_Extra1, OA2_End, OA2_End, OA2_End}}, + {OA2_Id, OA2_Scope, OA2_Redirect, OA2_Response, OA2_Extra2, OA2_Extra3, OA2_Extra4, OA2_End}}, {NULL, NULL, {OA2_End, OA2_End, OA2_End, OA2_End, OA2_End, OA2_End, OA2_End, OA2_End}}, /* device code, not used */ {"POST", (unsigned char *) "https://login.microsoftonline.com/\001/oauth2/v2.0/token", /* Get first Refresh Token and Access token */ - {OA2_Id, OA2_Redirect, OA2_Scope, OA2_GrantTypeforAccessToken, OA2_Secret, OA2_Code, OA2_End, OA2_End}}, + {OA2_Id, OA2_Redirect, OA2_Scope, OA2_GrantTypeforAccessToken, OA2_Secret, OA2_Code, OA2_Extra1, OA2_End}}, {"POST", (unsigned char *) "https://login.microsoftonline.com/\001/oauth2/v2.0/token", /* Get access token from refresh token */ {OA2_Id, OA2_RefreshToken, OA2_Scope, OA2_GrantTypefromRefreshToken, OA2_Secret, OA2_End, OA2_End, OA2_End}} }, diff --git a/pith/pine.hlp b/pith/pine.hlp index 2141748e..c163ade1 100644 --- a/pith/pine.hlp +++ b/pith/pine.hlp @@ -140,7 +140,7 @@ with help text for the config screen and the composer that didn't have any reasonable place to be called from. Dummy change to get revision in pine.hlp ============= h_revision ================= -Alpine Commit 617 2021-11-21 02:19:27 +Alpine Commit 618 2021-11-21 14:47:21 ============= h_news ================= <HTML> <HEAD> @@ -194,8 +194,8 @@ new additions to Alpine, please check it periodically. now it will. <LI> Support for code_verifier and code_challenge when generating a - refresh token and access token in Gmail using the S256 method - and plain method. + refresh token and access token in Gmail and Outlook using the + S256 method and plain method. <LI> Some servers do not allow the Drafts folder to be removed, even when it is empty. Alpine, however, assumes that if the folder exists, it |