From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Bj=C3=B6rn?= Bidar via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#72358: 29.4; oauth2.el improvements Date: Thu, 08 Aug 2024 09:14:39 +0300 Message-ID: <45478.087016248$1723097756@news.gmane.org> References: <87mslz8yzk.fsf@debian-hx90.lan> <87frrr725m.fsf@gmail.com> <66a8f323.170a0220.9172c.8e28SMTPIN_ADDED_BROKEN@mx.google.com> <87a5hy8y8j.fsf@debian-hx90.lan> <87ed6zc40g.fsf@debian-hx90.lan> Reply-To: =?UTF-8?Q?Bj=C3=B6rn?= Bidar Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36256"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Robert Pluim , 72358@debbugs.gnu.org To: Xiyue Deng Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 08 08:15:47 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sbwR9-0009Ge-Cx for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 08 Aug 2024 08:15:47 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sbwR0-0007De-1h; Thu, 08 Aug 2024 02:15:38 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sbwQy-0007D3-R8 for bug-gnu-emacs@gnu.org; Thu, 08 Aug 2024 02:15:36 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sbwQy-00023i-IQ for bug-gnu-emacs@gnu.org; Thu, 08 Aug 2024 02:15:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=7l3JUR/CxqXSPU1PC7TctIRg2XEO6L4q3MOWCDyez0s=; b=pKZoukm8S70V0iektbOcaoGnrGOM07GzrUZKND/voAyR3Mt92NryKbX8rJqMkHVVAfF0P1/Yfl3g4u9DfMlnihd8AiXUcNy7LbioB5B0Yuix6X6Y4FVA1kEEsbJLU6qD8oVfwWa8kr5BYzTArCS71M0nRPtXbBKFmv67xLpjQ8RG2yHG3nNaMbtS6uGa+9+/FMeNXFotSWw1sNFei+hrftp/xTKyKroaT8/E7Cr/XYwL534msnxefHuLscgfqXmiu82prg2vvM+G/wYyfsvICWWMMfdkdOgmOVkjt5AtZs6M6ViaC4FpGuUX+di9ylG5EQImNwXKzkWYeuN/dnOxbA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sbwRO-0008MI-LZ for bug-gnu-emacs@gnu.org; Thu, 08 Aug 2024 02:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Bj=C3=B6rn?= Bidar Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 08 Aug 2024 06:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72358 X-GNU-PR-Package: emacs Original-Received: via spool by 72358-submit@debbugs.gnu.org id=B72358.172309771432041 (code B ref 72358); Thu, 08 Aug 2024 06:16:02 +0000 Original-Received: (at 72358) by debbugs.gnu.org; 8 Aug 2024 06:15:14 +0000 Original-Received: from localhost ([127.0.0.1]:35376 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sbwQb-0008Kj-QU for submit@debbugs.gnu.org; Thu, 08 Aug 2024 02:15:14 -0400 Original-Received: from thaodan.de ([185.216.177.71]:36536) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sbwQZ-0008KT-QI for 72358@debbugs.gnu.org; Thu, 08 Aug 2024 02:15:12 -0400 Original-Received: from odin (dsl-trebng12-50dc75-154.dhcp.inet.fi [80.220.117.154]) by thaodan.de (Postfix) with ESMTPSA id 05578D00042; Thu, 8 Aug 2024 09:14:39 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=thaodan.de; s=mail; t=1723097680; bh=aHCHF6hBIbUTyUN0zb9Fy6Hj2Qmny8El0VTVLDOOaus=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=lC+QCqZyntFI2xhU7WoyVC4XUIT8ie/q9oS0q125Ct0+NDW0NaCXLR1ZLFbYuwrN1 1IBsg4Ly+LGdp00boz1xdPPpeE1sU4c20JN0K77WlY88WT+pLuTRouWPiTJJ8IPQyR GcPaim0E1J4fmgnVjfLn/vm9nU8uDcA7Ffq9U42LNBRB6aUTAMVau0eXgZzcXeqYz7 0jUeNCIIpbcKzemFtipckwUCUQ4aMUpErQmCFAe566H9yr03h0N3192x/s2nEevd8y H//fG2iipARrwNLKLCmsOSVuYl8vanLF7TC0M6PfN/cFfg0gUhP1S4dYxYdorrWVOQ iE/3sZNZGga7Nh24dCvZAUIrtxunmtTVWHQrwJ9U90mI3NJDqktbn5BIovR9mw3H71 K2/0pW5yY/BAmLYUoLnfaj0GLr9mcZGo6KWGqs+wMBPapdHd5+u+DlzxLxfRQVJsKo dA8Q/PueS6nm6j3+L+HX0QSxf4Y+YcobfnpgExCeefONw6zW1xRGVihCEpUr/PqBYf Gdztyo2MTlQS0krrVJyxpYoDqHwG466TLALQl0o74NmOKNkxne+CUj3TQUUqlWmteZ Xze4ExtIfYo4M9+dIsuYZh26N4uegSEdIpa762Y1QolZr6/7S0n88/xfdGIRed0hfu y/3df3Mb1zWB/8qXKz86VivM= In-Reply-To: <87ed6zc40g.fsf@debian-hx90.lan> (Xiyue Deng's message of "Wed, 07 Aug 2024 16:22:23 -0700") Autocrypt: addr=bjorn.bidar@thaodan.de; prefer-encrypt=nopreference; keydata= mDMEZNfpPhYJKwYBBAHaRw8BAQdACBEmr+0xwIIHZfIDlZmm7sa+lHHSb0g9FZrN6qE6ru60JUJq w7ZybiBCaWRhciA8Ympvcm4uYmlkYXJAdGhhb2Rhbi5kZT6IlgQTFgoAPgIbAwULCQgHAgIiAgYV CgkICwIEFgIDAQIeBwIXgBYhBFHxdut1RzAepymoq1wbdKFlHF9oBQJk1/YmAhkBAAoJEFwbdKFl HF9oB9cBAJoIIGQKXm4cpap+Flxc/EGnYl0123lcEyzuduqvlDT0AQC3OlFKm/OiqJ8IMTrzJRZ8 phFssTkSrrFXnM2jm5PYDoiTBBMWCgA7FiEEUfF263VHMB6nKairXBt0oWUcX2gFAmTX6T4CGwMF CwkIBwICIgIGFQoJCAsCBBYCAwECHgcCF4AACgkQXBt0oWUcX2hbCQEAtru7kvM8hi8zo6z9ux2h K+B5xViKuo7Z8K3IXuK5ugwA+wUfKzomzdBPhfxDsqLcEziGRxoyx0Q3ld9aermBUccHtBxCasO2 cm4gQmlkYXIgPG1lQHRoYW9kYW4uZGU+iJMEExYKADsCGwMFCwkIBwICIgIGFQoJCAsCBBYCAwEC HgcCF4AWIQRR8XbrdUcwHqcpqKtcG3ShZRxfaAUCZNf2FQAKCRBcG3ShZRxfaCzSAP4hZ7cSp0YN XYpcjHdsySh2MuBhhoPeLGXs+2kSiqBiOwD/TP8AgPEg/R+SI9GI9on7fBJJ0mp2IT8kZ2rhDOjg gA6IkwQTFgoAOxYhBFHxdut1RzAepymoq1wbdKFlH X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:289917 Archived-At: Xiyue Deng writes: > Xiyue Deng writes: > >> Bj=C3=B6rn Bidar writes: >> >>> Robert Pluim writes: >>> >>>> Xiyue> - This will invalidate all existing entries and a user will= have to redo >>>> Xiyue> the authorization process again to get a new refresh toke= n. However, >>>> Xiyue> I think it's more important to ensure that oauth2.el work= s correctly >>>> Xiyue> for multiple accounts of the same provider, or a user may= suffer from >>>> Xiyue> confusion when adding a new account invalidates a previou= s account. >>>> >>>> I don=CA=BCt think that=CA=BCs too big a concern. 'modern' authenticat= ion flows >>>> regularly re-prompt, so this will not be too surprising (although >>>> maybe call it out in the package=CA=BCs NEWS or README). >>> >>> In many cases the refreshing of tokens is transparent to the user there >>> doesn't have to be a re-prompt to refresh the token if the OAuth >>> provider support it. >>> Micrsofts OAuth workflow is quite good in this regard as there's a >>> non-standard error to indicate when the user has to re-authorize the >>> application. >>> >> >> Actually I am currently having trouble for a few weeks to get my >> outlook.com email work with MS OAuth2. To avoid some repeated typing, I >> have documented the issues and steps I have tried in this stackoverflow >> question[1]. I would great appreciated it if you can shed some lights >> there >> >>> I assume all implementation of OAuth have their quirks. >> >> Indeed. >> >> >> [1] https://stackoverflow.com/questions/78787763/getting-aadsts65001-err= or-invalid-grant-when-trying-to-refresh-access-token-fo > > Just want to report back that after confirming with an MS representative > through online chat, outlook.com has actually disabled refreshing > access_token through the token endpoint, and users are asked to migrate > to Outlook app or compatibles apps (Thunderbird still works). I'm not > sure whether this is also the case for organization emails, which may > also be disabled by default (or soonish if not already) but can be > enabled separately by an org admin. Anyway, I'd suggest people stop > wasting your time here and use Gmail (or maybe Yahoo mail) which has > decent 3rd party OAuth2 support. Can you link a source about that?