From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id sBzCEYJSZWNWJwAAbAwnHQ (envelope-from ) for ; Fri, 04 Nov 2022 18:57:22 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id KNPKEYJSZWOCQQAA9RJhRA (envelope-from ) for ; Fri, 04 Nov 2022 18:57:22 +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 EA77939C89 for ; Fri, 4 Nov 2022 18:57:21 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) 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 ) 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 ) 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 ) 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" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 04 Nov 2022 17:57:01 +0000 Resent-Message-ID: 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 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 ) 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 ) 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 ) 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 ) 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: 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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Guix-patches" Errors-To: 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=1667584642; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=QcpPJ0QN7tp7el3Ha7GN2EFkpJ/gXSFXnxDJPe2dJIo=; b=FOXz+6U1MEPB4XqsadLivduh7BBwj3jAO3tIumjFEnFJp6SxivBP4V41GI6mHTk9ODeKmd eFmuNMW1d+umMOoEJX6uG2wcv8maHPm6NMCufrZbWvuRY3lpqU9E/E0YKq3vZl+Jy2Ke1m MQh1PKi+cifwkxbOJcdP2UqKw7L0cDr2l5oESvAitP98yfguoYn7qR91Br0lTwhERp/Z28 EDjZDyTGqDWbdfFwMG7uICdpBszVStwtazw1iObKpwjxQmxuahFXKnaYaP4yjFvPyB+L/W bLMrKSYw/3nWnG2udSPFQbaOEIjMXptxXRPTbonpFPQ80YjU/ZwWX6uNy368YQ== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1667584642; a=rsa-sha256; cv=fail; b=G68OMiXJVy0bLGfoQMOF4UEiCTmTDldSp94VDYF5xE/DPtKnjOYS5ADBHa+Jkm6Xse2okc FfRQaO2tP/wBmsTQydcOQ+8Y0Ard7lVMMeVn1yh4murlSdLh3rbAq2V4jgaeiQ/1xX9CNe CXk/21eX9qtt4Apl8+d0EcrixA8u9YVTNv2B9wt/ZbaWKcG1FgFkRn9d37X5AghVS2BMQf /uFKEIR5PXMOT19UC491a7xukwoaDoqvGKmq7edAE3bbhGCDx8/htVyGf+ohPai+WbMbyk 9vvsBnJP8UV+quZ+VndZ0GKCstRl1sPz1saR9oGiPc+E2qdJc4kiP40KrWSYxg== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=polidoro.io header.s=dreamhost header.b=Ffp5yCIV; 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: 3.30 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=polidoro.io header.s=dreamhost header.b=Ffp5yCIV; 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: EA77939C89 X-Spam-Score: 3.30 X-Migadu-Scanner: scn1.migadu.com X-TUID: NRkGFS9FJ0Y+ From: Peter Polidoro 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(+) -- 2.38.0