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: Tue, 30 Jul 2024 17:08:21 +0300 Message-ID: <9717.00003590144$1722349291@news.gmane.org> References: <87mslz8yzk.fsf@debian-hx90.lan> Reply-To: =?UTF-8?Q?Bj=C3=B6rn?= Bidar Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14156"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 72358@debbugs.gnu.org To: Xiyue Deng Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jul 30 16:21:23 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 1sYnj8-0003UJ-J5 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 30 Jul 2024 16:21:22 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sYnds-0000W6-IH; Tue, 30 Jul 2024 10:16:02 -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 1sYnd1-0000N2-Km for bug-gnu-emacs@gnu.org; Tue, 30 Jul 2024 10:15:14 -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 1sYncx-0003gC-Pr for bug-gnu-emacs@gnu.org; Tue, 30 Jul 2024 10:15:00 -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=dQBEDkEqdhIraPmjKLJj5NyVcM2NorFdPdxWuoOO3VA=; b=vtjjN8VLdBkBbknfbkpnWp52B4NIoU79Ky5M2ypojausPf+awjagCcub4gqTqPbd/ClI4G+gxAHb4EkPiy8Seu2Bw9mzRuCzk2ufyTPdLexWRPJt4ptFrKbSXMO6tN3sBwKXixZa6XQPfgGiub6WVFrUdXPI3iKUDHK6LOmywyARrkRrXbDim6WevfnFJ4A7zJNYRUmZ6lPuhAjK6dW3BKIoUDRxdk/SEkn1mBosq2mvwkpitIo95YHVyiYAUwNTybxAhojp6O5q4O3ZQBciWOISvDidHOwGRWyYEzDaTseikwmCM2PjhSQFWhRNTtmGQC96En1/IBY1Ex+67lLg8g==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sYncz-0006Ua-Vz for bug-gnu-emacs@gnu.org; Tue, 30 Jul 2024 10:15: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: Tue, 30 Jul 2024 14:15:01 +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.172234884724882 (code B ref 72358); Tue, 30 Jul 2024 14:15:01 +0000 Original-Received: (at 72358) by debbugs.gnu.org; 30 Jul 2024 14:14:07 +0000 Original-Received: from localhost ([127.0.0.1]:48061 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sYnbz-0006Sf-Bt for submit@debbugs.gnu.org; Tue, 30 Jul 2024 10:14:07 -0400 Original-Received: from thaodan.de ([185.216.177.71]:58622) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sYnXD-0006M5-EL for 72358@debbugs.gnu.org; Tue, 30 Jul 2024 10:13:54 -0400 Original-Received: from odin (dsl-trebng12-50dc75-154.dhcp.inet.fi [80.220.117.154]) by thaodan.de (Postfix) with ESMTPSA id 53367D00045; Tue, 30 Jul 2024 17:08:22 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=thaodan.de; s=mail; t=1722348502; bh=M7IIf0wD9EecdKr1WBd8UwFYEUZDO2FKpJt6CaOflmk=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=rkQ5LRjMJv0i8jk2VhEgQabs/KGRsUoWOF9PS1U1WnD6m6cpyvRDmdy0M6d6S6wju tkdOeaSQaHT4DwQ90o/0dZHwUwRttYJ4wYtgtGNoGDzi6X9kT0YoXxnN5NYiJKp/oW 7FEo4SFzHufv/Rz1eWfDxz82479bbtoeNfMv1EumIx4HEd2uqkkG6m41RYylmnKRXb b2TOUcVpAXHQdwdexfd2df4TCA6Whd4Z/lh7iywPXelsWndwtE397lsLUnBQni3Smf iB0ozIE87W4Sl1eoNGm1mGq0JfFHATn54jZqwlJdcWEdtvQdBa+TvykbxWrKvd8SR8 t6QUrTOH4ZI0HEFrlmMMBKSiMyBvsMPB0GK41LrNNUiMmy5BkgjEZEluDURgLREvHt pt5l4Esc0OjkkHfa94YIxbfbnZa5vscV09VeDp/7rdRjHXZmr7lb4f93WJ9TzNefoG KLS7Jrxj2jS/Em8UVxy97m8fVT84q1pYIaFJkang/CFp8Soi1ZcAuNOqfj5Aqxk2Fu /g6BSWQyusKqh3DyARwBFxN3uxnmLljAbXtGF40ABcFvfX4Ht9NogpFBzl8iUS4YTp SR9Cf+K8GjdvQOX1+jNUczF0rmnyray9VFWypKLYSo3BEeapwCf6HxllXRjC5uhrTW LbyTXRNiQhkEUum7VpSUsmZs= In-Reply-To: <87mslz8yzk.fsf@debian-hx90.lan> (Xiyue Deng's message of "Mon, 29 Jul 2024 14:25:01 -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:289549 Archived-At: Xiyue Deng writes: > The fourth patch may need a bit of background: oauth2.el (optionally) > uses plstore to save authentication data for future reuse, and the > plstore id for an account is computed using a combination of `auth-url', > `token-url', and `scope'. However, this combination of data doesn't > guarantee uniqueness for accounts for a same provider, e.g. for Gmail, > the three parameters are the same for different accounts, and hence > storing a second account information will override the first one. Would it make sense to plug OAuth2.el into auth-source to store the authentication token safely inside an existing credential storage? Various applications already do so when using the native credential storages such as Freedesktop.org or the macOS keyring.