Message ID | cover.1667583886.git.peter@polidoro.io |
---|---|
Headers |
Return-Path: <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org> X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id D211127BBEB; Fri, 4 Nov 2022 17:57:22 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id ED5A727BBE9 for <patchwork@mira.cbaines.net>; Fri, 4 Nov 2022 17:57:21 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <guix-patches-bounces@gnu.org>) id 1or0wC-0005fF-Lj; Fri, 04 Nov 2022 13:57:04 -0400 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 <Debian-debbugs@debbugs.gnu.org>) id 1or0wA-0005bk-Ly for guix-patches@gnu.org; Fri, 04 Nov 2022 13:57:02 -0400 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 <Debian-debbugs@debbugs.gnu.org>) id 1or0wA-0006ha-Du for guix-patches@gnu.org; Fri, 04 Nov 2022 13:57:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1or0w9-0005wf-UB for guix-patches@gnu.org; Fri, 04 Nov 2022 13:57:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#59018] [PATCH 0/1] OAuth2 for mbsync Resent-From: peter@polidoro.io Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 04 Nov 2022 17:57:01 +0000 Resent-Message-ID: <handler.59018.B.166758459022804@debbugs.gnu.org> Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 59018 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 59018@debbugs.gnu.org Cc: Peter Polidoro <peter@polidoro.io> X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.166758459022804 (code B ref -1); Fri, 04 Nov 2022 17:57:01 +0000 Received: (at submit) by debbugs.gnu.org; 4 Nov 2022 17:56:30 +0000 Received: from localhost ([127.0.0.1]:54751 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1or0ve-0005ve-1m for submit@debbugs.gnu.org; Fri, 04 Nov 2022 13:56:30 -0400 Received: from lists.gnu.org ([209.51.188.17]:34496) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <peter@polidoro.io>) id 1or0va-0005vT-LA for submit@debbugs.gnu.org; Fri, 04 Nov 2022 13:56:28 -0400 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 <peter@polidoro.io>) id 1or0va-0005DY-EM for guix-patches@gnu.org; Fri, 04 Nov 2022 13:56:26 -0400 Received: from bumble.birch.relay.mailchannels.net ([23.83.209.25]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <peter@polidoro.io>) id 1or0vY-0006f8-6d for guix-patches@gnu.org; Fri, 04 Nov 2022 13:56:26 -0400 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 138D3101CE5; Fri, 4 Nov 2022 17:56:18 +0000 (UTC) Received: from pdx1-sub0-mail-a262 (unknown [127.0.0.6]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 56B91101BBD; Fri, 4 Nov 2022 17:56:17 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1667584577; a=rsa-sha256; cv=none; b=iecWn2A9uQ1NfHCUARO7IQWb57QKt2o4FwI+UmzJT6ZJSAf4VgFuv/n+skVik23atazcO/ TecJ02lfvAViSed8d7ZWZH5p2Q3oP/VIqpiaSsA6ruuYKQ0GYahxCzf4p/nIsN2jUgpLPN vyvCOjZ0IR16B/fVI6+0mi56Ox/P88T55NOa7sm8zoectIvgEqF/avHwm57DnY3ON9nO7I etKdRaj5n+3AiF+kDVT4zYpSH0VaxFdsyHIyGf0B1FToRajujqawONqYp7JBa2bCFXhM26 sbvMXmByFpF/9tmpe8vCl60zffMTctspd6wC+/alWroLZWpHNBhkRBGWFpiZRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1667584577; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:dkim-signature; bh=QcpPJ0QN7tp7el3Ha7GN2EFkpJ/gXSFXnxDJPe2dJIo=; b=xN00YY6qhQIkURA6WTJoxgZqrUooeWOLU3GZQCt+dsgds4Skz5J2Tn/75qlWeqRRmqQoBt cOvUzx9L2bIaRltUHpi9vPpO8AYhkjKelZH5KWpZLQ++KeLf4v4Ndfw/gOYrZnfStXMIgV mTaPn6bLmRzz9yF3ryGDF6csTZDzHGjOZp/mFbIor/+Oep6mRJjRwlCUnTGhAV08h+Ru4L jabU7+YhH3235i9DWzh/kohGIIolS8X0qPmuUbsLC9tezzxK8iT4BhllM6NTD1qLvLKChv YF1U3PlcpuoG+/eU4ABq6ERHN/0OqcderDX7TdmKc+X8dalBsLbFG96nGwP28g== ARC-Authentication-Results: i=1; rspamd-5cb65d95c4-8pxgs; 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-Exultant-Chemical: 527cc5ad610495ca_1667584577637_1387992530 X-MC-Loop-Signature: 1667584577637:2495309129 X-MC-Ingress-Time: 1667584577636 Received: from pdx1-sub0-mail-a262 (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.103.24.77 (trex/6.7.1); Fri, 04 Nov 2022 17:56:17 +0000 Received: from minotaur.hhmi.org (unknown [206.241.0.254]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: peter@polidoro.io) by pdx1-sub0-mail-a262 (Postfix) with ESMTPSA id 4N3pG85gCbz1w; Fri, 4 Nov 2022 10:56:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=polidoro.io; s=dreamhost; t=1667584577; bh=QcpPJ0QN7tp7el3Ha7GN2EFkpJ/gXSFXnxDJPe2dJIo=; h=From:To:Cc:Subject:Date:Content-Transfer-Encoding; b=Ffp5yCIVNsFIfVyMZT0K4MqX9YmkbycvCI+tv1Ei8tqwheM0CakM3aU6IDKy2uNNg oKeXJlWnocjGPXA8unIV3L5B1FIaLMlIRwPyQ09ym521lYu0+Facjl4+Xyx/a2dncV sOEAR9JqooZprsV1j0J9cXLeESzWSSu43wrzLaIQCnRRUYl0e8TQoRNBiUso3V9GN+ O8rAy80/OBfPogjNHKDWEIYFNj6vVjXP/I80hp2daNXI7/ST6yIlweLiPXqUpa6eF2 fOd2q1k1RpWIhDhlLaCK3XR/M+P5/yTct7EfbD6KJxoJsnXbtLwkPC9ToWGF6rUHL2 wwNB4e39dK8kw== From: peter@polidoro.io Date: Fri, 4 Nov 2022 13:56:04 -0400 Message-Id: <cover.1667583886.git.peter@polidoro.io> X-Mailer: git-send-email 2.38.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=23.83.209.25; envelope-from=peter@polidoro.io; helo=bumble.birch.relay.mailchannels.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: <guix-patches.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=unsubscribe> List-Archive: <https://lists.gnu.org/archive/html/guix-patches> List-Post: <mailto:guix-patches@gnu.org> List-Help: <mailto:guix-patches-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=subscribe> Sender: "Guix-patches" <guix-patches-bounces@gnu.org> Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches |
Series |
OAuth2 for mbsync
|
|
Message
Peter Polidoro
Nov. 4, 2022, 5:56 p.m. UTC
From: Peter Polidoro <peter@polidoro.io>
I am trying to get OAuth2 working for mbsync so I can check an email account
that has discontinued basic authorization.
Following these steps:
https://github.com/harishkrupo/oauth2ms/blob/main/steps.org
I am at the point of needing the xoauth2 sasl plugin to make mbsync work with
the XOAUTH2 AuthMech. Perhaps that is already a part of Guix, but I was unable
to find it.
Here is an implementation of the xoaut2 sasl plugin that I attempted to package:
https://github.com/moriyoshi/cyrus-sasl-xoauth2
It seems to compile correctly, but I was unsure of how to do the configuration
in order to make it install into the proper location. It defaults into
installing it to:
/usr/lib/sasl2
Perhaps it instead needs to go into the /lib/sasl2 directory within the
cyrus-sasl package, but I do not know how to specify that in this package's
configuration.
I assume that if cyrus-sasl is able to detect and use this plugin then it will
have the ability to use XOAUTH2 making mbsync work correctly, but that would
have to be tested to make sure more configuration is not needed.
Peter Polidoro (1):
gnu: Add cyrus-sasl-xoauth2.
gnu/packages/cyrus-sasl.scm | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
Comments
He peter, Thanks for the work. Did you just forget to submit the patch file?
On Sun Nov 6, 2022 at 9:12 PM GMT, dan wrote: > Thanks for the work. Did you just forget to submit the patch > file? Funny. The patch seems to have appeared in my inbox, but not on mumi's or debbugs' UI... -- (
Nov 7, 2022 5:18:25 AM ( <paren@disroot.org>: > On Sun Nov 6, 2022 at 9:12 PM GMT, dan wrote: >> Thanks for the work. Did you just forget to submit the patch >> file? > > Funny. The patch seems to have appeared in my inbox, but not on mumi's > or debbugs' UI... > > -- ( > Funny. The patch seems to have appeared in my inbox, but not on mumi's > or debbugs' UI... My bad, it's actually #59019
Hi, peter@polidoro.io skribis: > It seems to compile correctly, but I was unsure of how to do the configuration > in order to make it install into the proper location. It defaults into > installing it to: > /usr/lib/sasl2 > > Perhaps it instead needs to go into the /lib/sasl2 directory within the > cyrus-sasl package, but I do not know how to specify that in this package's > configuration. Adding files to another package is not possible. Packages usually have a search path environment variable for plugins. I don’t see one for cyrus-sasl (I just grepped for “getenv” so I might have overlooked it). The “Guix way” would be to have cyrus-sasl honor, say, $CYRUS_SASL_PLUGIN_PATH and look for plugins in those directories, add a search path to the package¹, and have the plugin installed in $prefix/lib/sasl2 like you did. Could you check whether cyrus-sasl already has such a mechanism, or add one (possibly discussing with upstream), and send updated patches? Nitpick: > + (description "XOAUTH2 mechanism plugin for cyrus-sasl.") Also, please improve the description². Thanks in advance, Ludo’. ¹ https://guix.gnu.org/manual/devel/en/html_node/Search-Paths.html ² https://guix.gnu.org/manual/devel/en/html_node/Synopses-and-Descriptions.html