From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrew Cohen Newsgroups: gmane.emacs.devel Subject: Re: oauth2 support for Emacs email clients Date: Wed, 4 Aug 2021 23:12:18 +0000 (UTC) Message-ID: <9720abdf-1fbb-4db2-be23-8f1ddeb94535@ust.hk> References: <52589.36892.953561.24840@gargle.gargle.HOWL> <87r1fb7xbk.fsf@ust.hk> <871r7a2u9e.fsf@gnu.org> <87h7g6rps6.fsf@ust.hk> <87eeb9zmf8.fsf@igel.home> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35067"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Andreas Schwab Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Aug 05 01:18:20 2021 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 1mBQ9T-0008x3-EQ for ged-emacs-devel@m.gmane-mx.org; Thu, 05 Aug 2021 01:18:20 +0200 Original-Received: from localhost ([::1]:34394 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mBQ9R-0000kt-Fp for ged-emacs-devel@m.gmane-mx.org; Wed, 04 Aug 2021 19:18:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51358) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mBQ8q-0008WQ-2y for emacs-devel@gnu.org; Wed, 04 Aug 2021 19:17:40 -0400 Original-Received: from mail-ty1jpn01on0710.outbound.protection.outlook.com ([2a01:111:f400:fe9d::710]:65440 helo=JPN01-TY1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mBQ8m-0007eq-Ky for emacs-devel@gnu.org; Wed, 04 Aug 2021 19:17:39 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mdElgKX34k/pQX5nkHnTnw/XqwK0mrk20CBq1nc46Dvs85KuSTDjzmsjNBCR8R6qEEuLkivCUVE0KD6VwISz5z2O9qV81HHUYsaov34ic02KOkqkfBxm795qYtL18/UWFJdgYkvfb31oJrTcCiLf7livEl4l+1qDtG1aWKyD1BFkVjHGjzPJttttnzvncsRiJCz14Og18OxsjF1NdjtJO6V26JW0S25mq4uerODTlz4jyfSfLXz3DbAr/oxxaRZmwDYK48R8y+lcK0ZDPjSh4b2afaevKwXZgG5fGMAlKyzKEZwVjc64DnJV4VHEI7icbnvbO5g7KNRkucZ525xjJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5LhfDzkrlJ8Sd43wg8pVFR/RensKBHVBqtUnqD/YrnE=; b=lr9VpysycLTzmnPuo/KrLhVHYzRYTHMFZgDShjJRK5f1lrjsB0zEaKbuwe+bfsIcgjeuNTGXmbY4Fe5jrPxUwwwL53St724YaqAp3tL8DzKVFTd/2dzNADZpDHIkRYg8OHo90hTpammhjj5Jv/dxEhrW89vNz/rmY75ysqM6mgKw37fytyqEnjAYa1KJpu4+3SJ0yCvt9JGr9o8QETc9b6vlJso7CeBbLnsXzCT9k9206U09gFW3QLMTg15oka3DCbrSoqspMHnHqKJQtHt7Y0eTJASRWXxY3cY9HRLckPJDXehAgfnUoGOHRYH9zdPGbakGtTbJPeMK+2xzqmsRQQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ust.hk; dmarc=pass action=none header.from=ust.hk; dkim=pass header.d=ust.hk; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ust.hk; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5LhfDzkrlJ8Sd43wg8pVFR/RensKBHVBqtUnqD/YrnE=; b=wLOr+WX1nm/uRQVJg3mP8ua38r7Ii4QXZasu3AkrW1dcVCHzFkJ76gvoJVqJWPRVupBYYhZKEyn/l+ZyNw8EGvmQrGGVFO3PH4Lr6//5Fw5IGNtJQCN4db/qBtbeffFJSH5WVBa7vuEgwaO0IxXTKSEmnt7/4rEwpMeLcLHW3XE2Z9OURO7Kpx1Slpq7AU/pG3rpqM6ryJRUaF7+A333Gk07dQ8P30sKPTIOIJTlUWpJ5GtXIvCr9/rB9Nly3eB0RtkJXjUlbUZNsi0n83cXK+QtQ4A5JzGMt7qG1L6+FiiyGgYDtU9Lcm5NNGp8+iG+sYZE7iGn7L7QWIZ+iFg5zw== Authentication-Results: linux-m68k.org; dkim=none (message not signed) header.d=none;linux-m68k.org; dmarc=none action=none header.from=ust.hk; Original-Received: from TYAP286MB0282.JPNP286.PROD.OUTLOOK.COM (2603:1096:404:8039::16) by TYCP286MB1315.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:be::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.21; Wed, 4 Aug 2021 23:12:25 +0000 Original-Received: from TYAP286MB0282.JPNP286.PROD.OUTLOOK.COM ([fe80::455a:6595:5a00:6de2]) by TYAP286MB0282.JPNP286.PROD.OUTLOOK.COM ([fe80::455a:6595:5a00:6de2%8]) with mapi id 15.20.4373.027; Wed, 4 Aug 2021 23:12:24 +0000 In-Reply-To: <87eeb9zmf8.fsf@igel.home> X-Correlation-ID: <9720abdf-1fbb-4db2-be23-8f1ddeb94535@ust.hk> X-ClientProxiedBy: SG2PR06CA0190.apcprd06.prod.outlook.com (2603:1096:4:1::22) To TYAP286MB0282.JPNP286.PROD.OUTLOOK.COM (2603:1096:404:8039::16) X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from [127.0.0.1] (193.176.211.118) by SG2PR06CA0190.apcprd06.prod.outlook.com (2603:1096:4:1::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4394.15 via Frontend Transport; Wed, 4 Aug 2021 23:12:23 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f670585a-011d-416e-fdea-08d9579d51bf X-MS-TrafficTypeDiagnostic: TYCP286MB1315: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:8882; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: FzOddHOM8l2QBMKO2L5nuembW+FJdjfoBJdX3YJBjM+oniQtgKNqGMZ+5zUHQXLW6KHiBjaqc8nZA3tiFTw+shr5E4kxmJlhw8xSbnokesfAL69xpSIlxY0lmQzkx1FGtUZTqJPQUNCpVdFPR7UApiE6fhVxLNiInSyMMDuzJo9OjbrMCWx/gCpXA81iMmSzrrea0dXjx9wQlMd7gQQeGjqrKpYlm6EMjnF67IyJvEDE3+2LM+iOeUbooCbpbM/ljjBCK2K2nsNJ5XOBJbZGq0V8yrW211k/vb91ktJBlitGqD9jG0EiNj3+1QV7TSaB70MQTT8gJYbJL7ULi4xFwz2qwGlIuWGXXwF0tIeypQJUHg0FetJhZ22XQ2K4vA7fBayReXOieUYayq9IM6wd//w7CsU4GvgMelFImb+Dk9Qo0CsXJgQTPGtf8nQjvDpLiricnqdWlg3+HMS7pjHOpb9NhIKABZle4VcAWp5E5O898Ab5IxpDzSda0SbmVdSEuJp+55hVytfOI8V2ErexFOzGV8Jk1wcyejM55tZUTtuvS+qkXZDuSvNNjs0EgHOQh4TD/r1qL8BVhceBvueEhsm38eFThaov1EBfrsi98HgaFXUbzbgHD3Vn4n10nXi7Ni5losRv4psPXNSqnVA1HyUs47XMJzNGNSu9nMCkOjbFiHjaAPzgRBmGA/wW67x0KHb0Al3R5Xtn7MdW3FP4J0Ir7JeBmf5ARo6DPHRDsow= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:TYAP286MB0282.JPNP286.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(4636009)(366004)(136003)(39840400004)(396003)(376002)(346002)(186003)(31696002)(2906002)(66946007)(38100700002)(38350700002)(4326008)(52116002)(2616005)(5660300002)(6666004)(956004)(8936002)(66476007)(83380400001)(66556008)(6486002)(7126003)(6916009)(316002)(26005)(16576012)(45640500001)(7246003)(478600001)(786003)(8676002)(36756003)(4744005)(86362001)(31686004)(45980500001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?b3dDS041THV4aEF2YnBwa2haQVBHc3lZc0FHQVZCemgvekd2bmhQNC9keTZU?= =?utf-8?B?SVVsOFdmeU1tcVZVSEN1UWYvVTZWdk9odndKMXJJZ3U3L1lsOCsyR3JBR3BY?= =?utf-8?B?VVlWNDNGTnJFZkxjeVNadGVBRzRQeEdTT1J1U2dvZXhDa3lMOHc3ZWNqVkQz?= =?utf-8?B?ajJUVE9Ec01PdjY3TW95SEVNZDNvZmRyZzg2d295eXFTTVVxQ2JuY1BvcmVv?= =?utf-8?B?Wm41YWpJYWtlMUYyWjIvL2F3SEdqTm1FYTB6Skt1cnBWYkQ1UFpWN3FjRlFC?= =?utf-8?B?aGVFQlp4ZHpDRlJSUW1HRHhOVSthaVhnYytzSlpRQW5aN280Y0xYYnVidktP?= =?utf-8?B?eFpvbWhJaGRsQnIwMkVUVkE2cStQS21DbmZRRkZwTFFMcjU5bEl4TDE3c2NW?= =?utf-8?B?R2poZTJPQlh0am1wU0VBc0pFcktDVzlvYWVoQkQzTEpvR1dkNzUyZTYwcTdo?= =?utf-8?B?d2tWRHZKTmNCZ2RXOHZVcmprWklLalNCOC90Q1R0eW50ZUVPVXN3R01TRDRU?= =?utf-8?B?RzREdm1GVEQvd1VnNFlGZExrRE56VkZmSjRBaGVtQ09mTThaOHR5aW12OVhF?= =?utf-8?B?dVNFSkdqZCtVV0ExZVF1VlMyYmdlTENjdUFBT0ZyaFR2RjU2dzh0aFlUeXVT?= =?utf-8?B?V2pWeExhVmV2Tkx0eHJIMFZ0R0x2T1AwTmtLeU X-OriginatorOrg: ust.hk X-MS-Exchange-CrossTenant-Network-Message-Id: f670585a-011d-416e-fdea-08d9579d51bf X-MS-Exchange-CrossTenant-AuthSource: TYAP286MB0282.JPNP286.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Aug 2021 23:12:24.6129 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: c917f3e2-9322-4926-9bb3-daca730413ca X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: JKpg4BmapeXcMNX9T8PdkBc1JcI6j3uq+JNHotERzjEaGLjEZo9ZZnPhO8asDW5d X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYCP286MB1315 Received-SPF: pass client-ip=2a01:111:f400:fe9d::710; envelope-from=acohen@ust.hk; helo=JPN01-TY1-obe.outbound.protection.outlook.com X-Spam_score_int: 6 X-Spam_score: 0.6 X-Spam_bar: / X-Spam_report: (0.6 / 5.0 requ) BAYES_50=0.8, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MSGID_FROM_MTA_HEADER=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.io gmane.emacs.devel:272066 Archived-At: Ahh, thanks, that was it. Too many timing variables-the access token has a lifetime of 60 minutes;=20 auth-source was caching this for 2 hours; and gpg-agent has a default=20 cache time of 2 hours as well. But a few minutes of configuration and now I don't have to type a=20 password too frequently:) Aug 4, 2021 3:42:02 PM Andreas Schwab : > On Aug 04 2021, Andrew Cohen wrote: > >> No, this has nothing to do with oauth2---the automatic refreshing=20 >> works >> just fine. Its the auth-store that is asking for a password to read=20 >> the >> local plstore file (for some reason it caches the password for some >> relatively short length of time, but then decides it needs the=20 >> password >> after a couple of hours). > > plstore does no caching itself by default.=C2=A0 For asymmetric encryptio= n=20 > it > depends on epg, and you can configure the cache time in gpg-agent. > > Andreas. >