From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Xiyue Deng Newsgroups: gmane.emacs.devel Subject: Re: Potential bug/inconsistency in auth-source netrc vs plstore backends Date: Sun, 10 Nov 2024 15:58:09 -0800 Message-ID: <87ttceljzi.fsf@debian-hx90.lan> References: <87h68idspm.fsf@gmx.de> <87fro1s7ds.fsf@debian-hx90.lan> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17914"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Notmuch/0.38.3 (https://notmuchmail.org) Emacs/29.4 (x86_64-pc-linux-gnu) Cc: Michael Albinus , emacs-devel To: Soham Gumaste Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Nov 11 00:58:57 2024 Return-path: Envelope-to: ged-emacs-devel@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 1tAHpY-0004b4-R2 for ged-emacs-devel@m.gmane-mx.org; Mon, 11 Nov 2024 00:58:56 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tAHoz-0002mL-7C; Sun, 10 Nov 2024 18:58:21 -0500 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 1tAHow-0002lq-Jf for emacs-devel@gnu.org; Sun, 10 Nov 2024 18:58:18 -0500 Original-Received: from mail-pl1-x62b.google.com ([2607:f8b0:4864:20::62b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tAHov-0000eB-4U for emacs-devel@gnu.org; Sun, 10 Nov 2024 18:58:18 -0500 Original-Received: by mail-pl1-x62b.google.com with SMTP id d9443c01a7336-20e576dbc42so43191165ad.0 for ; Sun, 10 Nov 2024 15:58:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1731283093; x=1731887893; darn=gnu.org; h=mime-version:message-id:date:user-agent:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=lhvnSYfEmL9WdTDnNGnll4yrwXeOl0McJ7VoJk+0mBY=; b=CC5HGCh3LwpqNnlds/abC4vM/f8FZsnXjsEZpolsRbu9cOQikJUUYuJLnBCHS3o3pb Ke0QvDnGm7XPRRep2leS9/dKZn6HgseTZlUNXNIV6bNppu9dEq9wdKy7Tdfa/ghEc9QM 4QyVAzQgf7aLs+RakoRfHhnA1ir9VDqCeY9oOYCxX1trgyLQTtbHj8/V0aHMKFtyOn9n AEWZg+5n2hJVQ7pQW8ErkSwEWtf8Fa0Klf+gdy/ROXB1u0GYW0qwhsxETjDFSbId9AG4 4lw/d20baeRmHojBTZ0BVwSy14BLIzRGj6lmANYZMpQCSpVl7fUUhQ9vCfXBYeKALBsL 5EgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731283093; x=1731887893; h=mime-version:message-id:date:user-agent:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=lhvnSYfEmL9WdTDnNGnll4yrwXeOl0McJ7VoJk+0mBY=; b=EH2Z2De25abYlKBqF8AbJt4ieS82ykDzIV5DKpsB8L9/+MXVXApZlx90BJSg/35YO4 r1z2nxwzInMpTBtxTZBTgkW0QhMxFM6pjoNS56/3kK4bUy4Afe5OwXTN7LFdDpHXuUJr uHPCE/L3+Lv+VC3cZkythoEyNB1mTlBMTji2QMXNRGHp8Z+Gx4woPLv9h44F/js5kYul xOM1iUpftqWmDpkPx+r0J9nWKJ/KdAG2A1EJ2ZQJgEDRcnSOjZ1m0MPGX3QFFvFIuvhq EOr7Hj9zEeup8gx3CQ2kzkhmrR1eJq8HwV0LnloiLe9lAze0T8C5k0FypkwggG1lNwl0 rNKg== X-Forwarded-Encrypted: i=1; AJvYcCU4LIZ/luV5m43JhalwkfQVVBKz8Tf48zAjspMXclrGdzeIgzbjUsevL8h1aCgNLiGtxfMYWwdHlvX7kg==@gnu.org X-Gm-Message-State: AOJu0Yz0HGZdCj0FhGVe7Ry+r/h2+nHKI1o5HeImkob/De3FbBl2/m6q IViq9eszazrAroxaiMV4KEzUq3dfiYUS0BTFiJlA52Imkh36hXkUwaTnAQ== X-Google-Smtp-Source: AGHT+IFQgPfS+2YOl2OysceMsXavB4/cQ8rvLoQt5xzG2ui3gYH6/BTtJcR8uzHuha2Rc3rmcVCrlg== X-Received: by 2002:a17:903:1247:b0:20c:d469:ba95 with SMTP id d9443c01a7336-2118350f948mr122699795ad.16.1731283092901; Sun, 10 Nov 2024 15:58:12 -0800 (PST) Original-Received: from debian-hx90 (syn-076-094-249-045.res.spectrum.com. [76.94.249.45]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-21177e42b68sm64410415ad.148.2024.11.10.15.58.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Nov 2024 15:58:12 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::62b; envelope-from=manphiz@gmail.com; helo=mail-pl1-x62b.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, FREEMAIL_REPLY=1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:325390 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Soham Gumaste writes: >> >> I think that's how auth-source is supposed to work. People would need 2 >> entries with different `:port's, one for imap(s), one for smtp, for both= to >> work. Or maybe there is a better way now? >> > > Well, auth-source should also work if one has simply `password > ` in the netrc file, and that password would be used for > every port, every user etc. Hmm, I would expect that a password is associated with an account identified by some user ID. Is there any existing usage of this apply-to-all kind of password? > However, the plstore backed for auth-sources currently requires that > the keys host, user, password, and port ALL are present in the entry > for it to successfully match. > I think all 4 fields are also required for other backends like netrc, json, etc. - when Gnus trying to search for an entry through nnimap, it tries to search using a tuple of (:host, :user, :port) and requires the returned entry has :secret. Or maybe I'm missing some other use case? > I wanted some insight into this discrepancy. My goal with the > oauth2.el changes is to have minimum viable integration with > auth-sources such that the existing functions using it work. It's > narrower in scope than your plugin, and perhaps when I have a final > patchset ready we can discuss the merits of each. > Definitely, sounds good. > Thanks > --=20 > Soham Gumaste > sohamg2@gmail.com =2D-=20 Regards, Xiyue Deng --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJGBAEBCgAwFiEEiKQfd6o81mjI+LWALell7WOCXJMFAmcxSJESHG1hbnBoaXpA Z21haWwuY29tAAoJEC3pZe1jglyTTq8P+gIsPwx2vC26IzE/CuFL3mDhf1yQozar BpH/NPW5c14Kkwp3upJxZWHVBguioamFqqjCqjnj0qeuvlk3eGjOn7F5R7SLRrqi ZF7DGTayOPqBBQPUE2/vw2OKxuIbivoA7b/xDVmVoqgWvaWIBb11ujP4ypA52gn6 FO8Jl/oHoJafaHUnXQFTqEziHcRZo/c6bhufHXLAKD/6JzkBkv3LHaple17oT/Xh t1Ii9XAhuOl6YoXPLs72joo/382mWhOoaAS+rBYUiwf69gFiLJrTMw75od3mPTbF NFEsiUOBhV7wxhxHnr/ECzUSTiblTwbedyGumReWYzdUOca+ZojMjgYXnbZXMpN8 J+auf12GtGbHCdclo1At4WLXRJiLm6WR2M6IsVaVpCzrECGT+gEW3UNKtbupMte9 ZxqGXc8PdKfY+QWwxiGxPNK3Tio+XY12AgxuRmswR9GaEClBe0Gk3ORsdNg9o9YA /oo0/ovFwTbxClHjXmp09rctEOIkV3GV1xygLn9Dfm3LC162mVHBT/1CaTucoo8z zkpZ9V+SUyxiBJP64YjYwEMfkom5idsHpidxEh4YRy87QEihN5uxBCCnX0NC3Czm q4ZhlHVFMAjC3oDpFbj6PzUr94ZDzL/PFgPrsItv1cYsI2lh18u+aGsRaHqInZue qg/rbjgBZWeP =tnua -----END PGP SIGNATURE----- --=-=-=--