From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Soham Gumaste Newsgroups: gmane.emacs.devel Subject: Re: Potential bug/inconsistency in auth-source netrc vs plstore backends Date: Fri, 8 Nov 2024 12:00:51 -0600 Message-ID: References: <87h68idspm.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29204"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Nov 08 19:02:30 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 1t9TJW-0007TX-I7 for ged-emacs-devel@m.gmane-mx.org; Fri, 08 Nov 2024 19:02:30 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t9TIi-0001mb-K1; Fri, 08 Nov 2024 13:01:40 -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 1t9TId-0001ly-7y for emacs-devel@gnu.org; Fri, 08 Nov 2024 13:01:35 -0500 Original-Received: from mail-pj1-x1030.google.com ([2607:f8b0:4864:20::1030]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t9TIX-0001tG-RL for emacs-devel@gnu.org; Fri, 08 Nov 2024 13:01:34 -0500 Original-Received: by mail-pj1-x1030.google.com with SMTP id 98e67ed59e1d1-2e2ab5bbc01so332481a91.2 for ; Fri, 08 Nov 2024 10:01:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1731088888; x=1731693688; darn=gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=R6IdKTJGAs3Kmo8Qv043/m1tr9IHthPHjOEkk1r1xls=; b=XdSqPoDb/x2LhlOuhj5jMEkbMIVLnesiTNkkYrm41QU91W2xOC0wJ/hhDs5LnL4Agf LBYBX5gX3iafhC9dvv4LomVxN/XEPw7c0i7hjdCeXBqNKUozHrfJUaiqnBhbBuSNNTnE ZpvINeQACWfTyC5akQ0FfOj9ocxu72Z8RwuxU74hhyfOctOdBA/cpNj/WC9yZ5pEQxdN 2ysUKYKCOVhi7lQsPaxqJ9pxBt78meq81m/hV6oxXI7x1iGAcGjeQyZFe49QukvQfZBS vbnugfT5Q4fL06RMazH9dMLOGKZ0Mpd8KdPyfSvockPeecELs++94KjVb2MsRi8RDu3b SXNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731088888; x=1731693688; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=R6IdKTJGAs3Kmo8Qv043/m1tr9IHthPHjOEkk1r1xls=; b=er1IADvrLGuSVW+BFhrxq4rZt90z6u9uZyFSE08xCfRy9eGvHDZulwYltIPAcBimL8 I2xTWcLTMBTGNAaLDZmwlxv5Vzmn8DKQcwOkk40xTq6VXAoZS9LANmxqHxUXtw+pGB03 CZFzsd0Fr/4rOqZc5QC30nyqWoZYisJow7tgtq25OBwI8+ptL/YK2r+b6HxU2CV/LJsG Sh6SwrWC6UVHy9e8/HFyVRERUob/rTa8yuY8+Jqe/Vmt8q9AlHrX8elMFAnRGACG/mT/ PrcL11OslPnUQwnck+TK2PzWn86mgqEldtgoav/jEKZovihFkLbMb8OeDW6JOSQ5qESm hdWA== X-Gm-Message-State: AOJu0YykVvkhs+4KNXeYAvHH4NPbzGLUjSLceULmt/WvsLJbrMWnCKZK uYK8IKSb7K5AGcObsbQAKxqfIT5MOoJuqYui2IEjWnShIZjuKRtsAhf4p/A8AZsIX5nEJxNoTSa J4ghiqQ4yEosmda+NVHyTxYtbLFU= X-Google-Smtp-Source: AGHT+IHWlmNI7XBi7m+11ikM1Nurv6NmRdy8wy7/80cFAm1Ll+lEGecswN0OEQVIASB7TkHZeZisJOOnGZFdx7NNNx8= X-Received: by 2002:a17:90b:4a4e:b0:2e2:d562:6b42 with SMTP id 98e67ed59e1d1-2e9b14d7d14mr2257446a91.3.1731088888203; Fri, 08 Nov 2024 10:01:28 -0800 (PST) In-Reply-To: <87h68idspm.fsf@gmx.de> Received-SPF: pass client-ip=2607:f8b0:4864:20::1030; envelope-from=sohamg2@gmail.com; helo=mail-pj1-x1030.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, T_SPF_TEMPERROR=0.01 autolearn=ham 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:325302 Archived-At: > > Hello, > > Hi Soham, Hello, thanks for your time. > What about using a fixed port like ':port "token"'? A similar (mis-)use > of :port is used by Tramp, where the port keeps the connection method, > like ':port "ssh"'. > Well, I am trying to satisfy the auth-sources-search query in the function nnimap-credentials in nnimap.el. That query requests the :port in the spec, and for the query to succeed with the plstore backend I need to exactly match the :port attribute in the plist saved by oauth2.el. This would mean I would have to store every port the user wants to use oauth creds with. Regardless, I still want to know if the discrepancy between the netrc and plstore backend is intentional or if I can patch it. > This is documented in the auth manual, at the bottom of (info "(auth) > Help for users") . A simiar solution for oauth2.el could be documented > there as well. > My current workaround is to advise the nnimap-credentials with :around mode and returning the oauth2 token when appropriate. I'd like to make this more first class though. It could be done by simply tweaking the plist file stored by oauth2.el but the aforementioned discrepancy is the roadblock right now. I dare not try to edit anything in Gnus itself. > > Thanks > > Best regards, Michael. Thanks -- Soham Gumaste sohamg2@gmail.com