From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 6GN+Ev+tc2OWawEAbAwnHQ (envelope-from ) for ; Tue, 15 Nov 2022 16:19:27 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id qCduEv+tc2NQHQAAauVa8A (envelope-from ) for ; Tue, 15 Nov 2022 16:19:27 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 0085B31A11 for ; Tue, 15 Nov 2022 16:19:26 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ouxiO-0007tS-Hj; Tue, 15 Nov 2022 10:19:08 -0500 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 1ouxiI-0007p6-AD for guix-patches@gnu.org; Tue, 15 Nov 2022 10:19:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ouxiH-0005Xq-Vi for guix-patches@gnu.org; Tue, 15 Nov 2022 10:19:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ouxiH-0005l9-Jz for guix-patches@gnu.org; Tue, 15 Nov 2022 10:19:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#59018] [PATCH 0/1] OAuth2 for mbsync Resent-From: Peter Polidoro Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 15 Nov 2022 15:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59018 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 59018@debbugs.gnu.org Received: via spool by 59018-submit@debbugs.gnu.org id=B59018.166852552822118 (code B ref 59018); Tue, 15 Nov 2022 15:19:01 +0000 Received: (at 59018) by debbugs.gnu.org; 15 Nov 2022 15:18:48 +0000 Received: from localhost ([127.0.0.1]:55075 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ouxi2-0005ke-BV for submit@debbugs.gnu.org; Tue, 15 Nov 2022 10:18:47 -0500 Received: from fennec.ash.relay.mailchannels.net ([23.83.222.58]:52367) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ouxhx-0005kN-L3 for 59018@debbugs.gnu.org; Tue, 15 Nov 2022 10:18:45 -0500 X-Sender-Id: dreamhost|x-authsender|peter@polidoro.io Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id C6F1750255B; Tue, 15 Nov 2022 15:18:37 +0000 (UTC) Received: from pdx1-sub0-mail-a243.dreamhost.com (unknown [127.0.0.6]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 59AD6500928; Tue, 15 Nov 2022 15:18:29 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1668525509; a=rsa-sha256; cv=none; b=nGWiVQUBJWxScjnPDXhkj2bFi2s6uNoiK1ilx/4bQdxcNVX7wBjEEcSJGGHyFlptZ6TcsF SPuUc0PlimWc1Lhia0kmMqS+f9/ZlgxrIBheGNx4lj5x05PDOL91P1hq51ZQ0qh7p1VfRL yfGRqQSx3pqCmWym0nCSOQe29t9lQHDdOz+vXWDlo+sHYpMO3fwe1dEC3wEvMzzlxDhJ+g XZ0wYYRV6z7JBgmU1LPb6F26j/KnOuwQtwJP+8ZT5uognXCjf8HVK0Tr4Lxl2yxcCkRDZy CNbfQal0iu0ZhWeRGoebm3iUwZf/gDhV8iCcYvZJAN4UYEwiMAGj2Mz4FpnVbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1668525509; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references:dkim-signature; bh=Yvcg2f5Nm9tqBQH79iSwZy03faDFJC1BKOF9DGLp274=; b=ntlJSwr+Ihoz7rtgBOnLL82mavYi/6h0GOOllYVAiKbT/oGObOrhAuKFZ4zM/JVfNosImZ QWGxlCVMZu9ThgPpqURlbIpXA2QPjGbb18YFzX5IqEWMsliltAZSJ9Qe2t73j2k8hatbhT 9LQbq4p4K1qqF0xidp9HHDptGYU5SgdzMPeZuC/HbrBhV+wo/grGxsjSxwV3GmH1sRTo3X rlB8mfbRhxDrRNzUtF5bRZYK9EU9X6CLTDtRImAuYWLQHZ7OFTi365DJPssQ8qOTw9TbzT iQIFM1er9ys2Scy9excoXMCqrHwBi+CVhYx7ECKbCxyB5h27vEyrXUuP9GQTSQ== ARC-Authentication-Results: i=1; rspamd-7f9bbcf788-xlmnm; auth=pass smtp.auth=dreamhost smtp.mailfrom=peter@polidoro.io X-Sender-Id: dreamhost|x-authsender|peter@polidoro.io X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|peter@polidoro.io X-MailChannels-Auth-Id: dreamhost X-Skirt-Continue: 3b8d6d5603d8b4d5_1668525517539_3901870035 X-MC-Loop-Signature: 1668525517539:3512822705 X-MC-Ingress-Time: 1668525517538 Received: from pdx1-sub0-mail-a243.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.123.200.111 (trex/6.7.1); Tue, 15 Nov 2022 15:18:37 +0000 Received: from minotaur (unknown [206.241.0.254]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: peter@polidoro.io) by pdx1-sub0-mail-a243.dreamhost.com (Postfix) with ESMTPSA id 4NBVF05xZcz23; Tue, 15 Nov 2022 07:18:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=polidoro.io; s=dreamhost; t=1668525509; bh=cdXMVxw0y7D/aLFRFusMpp6BF+ERH9IjuCtKliIdEvU=; h=From:To:Cc:Subject:Date:Content-Type; b=heeAAUdVtRa59kI9dGEWfs6OCYjcUHEwfV3ePjOg0EXUTd0h/UZuqOU8+7FkyA/9s /a2Nc13eXSU/0bNnGUyzhbik7APfzqPfm4otlttplnrC4GST7ZNDd35A07qppfHyX0 3lDX4rUF53G342/OzGO2uzCPDkDgBRC1N0di6JIaSQ1+Cu0n/mS+R3NCSsOO1n76AX n8hU60NQdBTevwniIj5r2adEtuv5RpHuzDSblskrAMtaFoNvQI09wORUo9DtpKULqy Bhh/2KdEMj+yejt9FPJrJ3kbi/5t0qZ1l5r8u78NBvNiJMweaOoEK4lkrdRKLCNnNr AK6SI9sT9mZMA== References: <87sfikmr0x.fsf@gnu.org> User-agent: mu4e 1.8.11; emacs 28.2 From: Peter Polidoro Date: Tue, 15 Nov 2022 09:55:35 -0500 In-reply-to: <87sfikmr0x.fsf@gnu.org> Message-ID: <87k03wtfeu.fsf@polidoro.io> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1668525567; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=cdXMVxw0y7D/aLFRFusMpp6BF+ERH9IjuCtKliIdEvU=; b=KEYC/TUmrBjYi0IuYFiekjP4rchYmW0vONUPjjw9rONzL51GfjodIKY8+jnktyHNWQlVpF JRrat4j44K320+Z2+oT7pxIpBFkaUo8XfcMNlWngw6bU65lbihkRJLFFTiqssH8/g3XHKn jX+t8Oiq67yXwKrdHKmejXEoZTcrBUSO7CmPAUJf1wnDoFfm4LcixqVhge8WOHUJbCk8cp hMGQ81RBaEhmkUzsG5euJBRxaQ9Yk5zsZCvRgev1HuBaFIWcpBl/yMlqqpObzNKVovjkFL +li0qlshE9MNYalRuuG9oVbIgDbYxsFJ6lpvUPjA+B7ygQ6bxaWLMYJlaNDwRA== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1668525567; a=rsa-sha256; cv=fail; b=QpqZ2p8t+PmnfuHHS5FjKgnrCc92qkcxIZ1P1ghuSGaGxtg/Mqi1lJJqce7L8hmGmBFd44 /or5XqwVAKa1CJIFYXdgTjYxJd7R20LxYAYh6JbtThxMd9oUxfwz1Puf0Nd11vri3NQ5rs rm3nqQsxmqAT3IVmsRvEQhLbqI1lzihs3Sk7ViepFvzIjTE2Y4pHUgPsSCPcXszBDdxEk4 o+XQDjGkDC1D4D1cEV0qiHMHn/TwPgKO/W8tmmdxBvQhJLA9BimftwBgc3Bsv+b0/z/1hW LnsWirQ1GEmUy4xwIAfmXl1nfqHbddM7eKnHW6+YpmFGX/+N1kOco65ipPBuEA== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=polidoro.io header.s=dreamhost header.b=heeAAUdV; arc=reject ("signature check failed: fail, {[1] = sig:mailchannels.net:reject}"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 1.96 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=polidoro.io header.s=dreamhost header.b=heeAAUdV; arc=reject ("signature check failed: fail, {[1] = sig:mailchannels.net:reject}"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 0085B31A11 X-Spam-Score: 1.96 X-Migadu-Scanner: scn1.migadu.com X-TUID: nj7Lh9e7jap2 --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Hi, Ludovic Court=C3=A8s writes: > Packages usually have a search path environment variable for=20 > plugins. I > don=E2=80=99t see one for cyrus-sasl (I just grepped for =E2=80=9Cgetenv= =E2=80=9D so I=20 > might > have overlooked it). The =E2=80=9CGuix way=E2=80=9D would be to have cyr= us-sasl=20 > honor, > say, $CYRUS_SASL_PLUGIN_PATH and look for plugins in those=20 > directories, > add a search path to the package=C2=B9, and have the plugin installed=20 > in > $prefix/lib/sasl2 like you did. > > Could you check whether cyrus-sasl already has such a mechanism,=20 > or add > one (possibly discussing with upstream), and send updated=20 > patches? Thank you for your help on this package. According to the Cyrus SASL quickstart guide: "Note that the library can use the environment variable SASL_PATH=20 to locate the directory where the mechanisms are; this should be a=20 colon-separated list of directories containing plugins."[1] Unfortunately I still do not know enough about Guix packaging to=20 set this environment variable properly, nor do I know how to=20 properly set the installation path in the package configuration. This plugin's build and installation instructions are: ./autogen.sh ./configure sudo make install Footnotes: [1]=20 https://www.cyrusimap.org/sasl/sasl/quickstart.html#typical-installation --=-=-= Content-Type: text/x-diff; charset=utf-8 Content-Disposition: attachment; filename=0001-gnu-Add-cyrus-sasl-xoauth2.patch Content-Transfer-Encoding: quoted-printable >From d5e9f604531dbf9cf7a16a107a3745d0203e1dd7 Mon Sep 17 00:00:00 2001 Message-Id: From: Peter Polidoro Date: Tue, 15 Nov 2022 09:50:51 -0500 Subject: [PATCH] gnu: Add cyrus-sasl-xoauth2. * gnu/packages/cyrus-sasl.scm (cyrus-sasl-xoauth2): New variable. --- gnu/packages/cyrus-sasl.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/cyrus-sasl.scm b/gnu/packages/cyrus-sasl.scm index 2cd18f3e5e..abc0bc0c2b 100644 --- a/gnu/packages/cyrus-sasl.scm +++ b/gnu/packages/cyrus-sasl.scm @@ -3,6 +3,7 @@ ;;; Copyright =C2=A9 2013 Andreas Enge ;;; Copyright =C2=A9 2016 Leo Famulari ;;; Copyright =C2=A9 2019 Mathieu Othacehe +;;; Copyright =C2=A9 2022 Peter Polidoro ;;; ;;; This file is part of GNU Guix. ;;; @@ -28,6 +29,7 @@ (define-module (gnu packages cyrus-sasl) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) #:use-module (guix download) + #:use-module (guix git-download) #:use-module (guix build-system gnu)) =20 (define-public cyrus-sasl @@ -78,3 +80,28 @@ (define-public cyrus-sasl (license (license:non-copyleft "file://COPYING" "See COPYING in the distribution.")) (home-page "https://cyrusimap.org/sasl/"))) + +(define-public cyrus-sasl-xoauth2 + (package + (name "cyrus-sasl-xoauth2") + (version "0.2") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/moriyoshi/cyrus-sasl-xoauth2") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1py9f1mn5k5xihrk0lfrwr6723c22gjb7lmgya83ibvislm2x3wl")))) + (build-system gnu-build-system) + (native-inputs (list autoconf automake libtool)) + (inputs (list cyrus-sasl)) + (home-page "https://github.com/moriyoshi/cyrus-sasl-xoauth2") + (synopsis "XOAUTH2 mechanism plugin for cyrus-sasl") + (description "This package adds the Open Authorization standard, OAuth= 2, +authentication mechanism to cyrus-sasl as a plugin. OAuth is an open stan= dard +for access delegation, commonly used as a way for internet users to grant +websites or applications access to their information on other websites but +without giving them the passwords.") + (license (list license:expat license:expat)))) --=20 2.38.1 --=-=-=--